Skip to content

Commit 233d54c

Browse files
authored
1 parent 40840d1 commit 233d54c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/vs/workbench/contrib/preferences/browser/keybindingsEditor.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,10 @@ export class KeybindingsEditor extends EditorPane implements IKeybindingsEditorP
502502
this.keybindingFocusContextKey.reset();
503503
}));
504504
this._register(this.keybindingsTable.onDidOpen((e) => {
505+
// stop double click action on the input #148493
506+
if (e.browserEvent?.defaultPrevented) {
507+
return;
508+
}
505509
const activeKeybindingEntry = this.activeKeybindingEntry;
506510
if (activeKeybindingEntry) {
507511
this.defineKeybinding(activeKeybindingEntry, false);
@@ -1073,6 +1077,9 @@ class WhenColumnRenderer implements ITableRenderer<IKeybindingItemEntry, IWhenCo
10731077
_onDidReject.fire();
10741078
})));
10751079

1080+
// stop double click action on the input #148493
1081+
disposables.add((DOM.addDisposableListener(whenInput.inputElement, DOM.EventType.DBLCLICK, e => DOM.EventHelper.stop(e))));
1082+
10761083
const renderDisposables = disposables.add(new DisposableStore());
10771084

10781085
return {

0 commit comments

Comments
 (0)