Skip to content

Commit 79ff9a9

Browse files
committed
Patch handling of singleClickNavigation
1 parent 3edc44b commit 79ff9a9

File tree

3 files changed

+56
-2
lines changed

3 files changed

+56
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/lib/listing.js b/lib/listing.js
2+
index 07b699656bf1780aada21fb50c3c7748086e20e5..42c34c27f8c88993210ef1ce422a05967c2e5aeb 100644
3+
--- a/lib/listing.js
4+
+++ b/lib/listing.js
5+
@@ -1162,6 +1162,9 @@ export class DirListing extends Widget {
6+
// previously focussed item will be focussed.
7+
this._focusItem(this._focusIndex);
8+
}
9+
+ if (this._allowSingleClick) {
10+
+ this.evtDblClick(event);
11+
+ }
12+
}
13+
/**
14+
* Handle the `'scroll'` event for the widget.
15+
@@ -1241,9 +1244,6 @@ export class DirListing extends Widget {
16+
document.addEventListener('mouseup', this, true);
17+
document.addEventListener('mousemove', this, true);
18+
}
19+
- if (this._allowSingleClick) {
20+
- this.evtDblClick(event);
21+
- }
22+
}
23+
/**
24+
* Handle the `'mouseup'` event for the widget.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
"resolutions": {
4949
"@types/react": "^18.0.26",
5050
"react": "^18.2.0",
51-
"yjs": "^13.5.40"
51+
"yjs": "^13.5.40",
52+
"@jupyterlab/filebrowser@~4.4.0": "patch:@jupyterlab/filebrowser@npm%3A4.4.0#./.yarn/patches/@jupyterlab-filebrowser-npm-4.4.0-0616cbcbf2.patch",
53+
"@jupyterlab/filebrowser@^4.4.0": "patch:@jupyterlab/filebrowser@npm%3A4.4.0#./.yarn/patches/@jupyterlab-filebrowser-npm-4.4.0-0616cbcbf2.patch"
5254
},
5355
"devDependencies": {
5456
"@jupyterlab/buildutils": "~4.4.0",

yarn.lock

+29-1
Original file line numberDiff line numberDiff line change
@@ -3298,7 +3298,7 @@ __metadata:
32983298
languageName: node
32993299
linkType: hard
33003300

3301-
"@jupyterlab/filebrowser@npm:^4.4.0, @jupyterlab/filebrowser@npm:~4.4.0":
3301+
"@jupyterlab/filebrowser@npm:4.4.0":
33023302
version: 4.4.0
33033303
resolution: "@jupyterlab/filebrowser@npm:4.4.0"
33043304
dependencies:
@@ -3326,6 +3326,34 @@ __metadata:
33263326
languageName: node
33273327
linkType: hard
33283328

3329+
"@jupyterlab/filebrowser@patch:@jupyterlab/filebrowser@npm%3A4.4.0#./.yarn/patches/@jupyterlab-filebrowser-npm-4.4.0-0616cbcbf2.patch::locator=%40jupyter-notebook%2Froot%40workspace%3A.":
3330+
version: 4.4.0
3331+
resolution: "@jupyterlab/filebrowser@patch:@jupyterlab/filebrowser@npm%3A4.4.0#./.yarn/patches/@jupyterlab-filebrowser-npm-4.4.0-0616cbcbf2.patch::version=4.4.0&hash=7a0108&locator=%40jupyter-notebook%2Froot%40workspace%3A."
3332+
dependencies:
3333+
"@jupyterlab/apputils": ^4.5.0
3334+
"@jupyterlab/coreutils": ^6.4.0
3335+
"@jupyterlab/docmanager": ^4.4.0
3336+
"@jupyterlab/docregistry": ^4.4.0
3337+
"@jupyterlab/services": ^7.4.0
3338+
"@jupyterlab/statedb": ^4.4.0
3339+
"@jupyterlab/statusbar": ^4.4.0
3340+
"@jupyterlab/translation": ^4.4.0
3341+
"@jupyterlab/ui-components": ^4.4.0
3342+
"@lumino/algorithm": ^2.0.3
3343+
"@lumino/coreutils": ^2.2.1
3344+
"@lumino/disposable": ^2.1.4
3345+
"@lumino/domutils": ^2.0.3
3346+
"@lumino/dragdrop": ^2.1.6
3347+
"@lumino/messaging": ^2.0.3
3348+
"@lumino/polling": ^2.1.4
3349+
"@lumino/signaling": ^2.1.4
3350+
"@lumino/virtualdom": ^2.0.3
3351+
"@lumino/widgets": ^2.7.0
3352+
react: ^18.2.0
3353+
checksum: e69aca6f103e00189ca3b138faef3b0e9d638e646e4e5ea65178e4f50a6c5972fd88c7f8b57b9202a9ba922baef41f1b258540b9b26e05b4ffda3eba39fc98fa
3354+
languageName: node
3355+
linkType: hard
3356+
33293357
"@jupyterlab/fileeditor-extension@npm:~4.4.0":
33303358
version: 4.4.0
33313359
resolution: "@jupyterlab/fileeditor-extension@npm:4.4.0"

0 commit comments

Comments
 (0)