Skip to content

Commit 52164d7

Browse files
committed
docs: delete key not working in quick open filed
1 parent 6a04889 commit 52164d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/search/QuickSearchField.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ define(function (require, exports, module) {
167167
event.stopPropagation();
168168
event.preventDefault();
169169
}
170+
// if there is nothing selected, we should not preventDefault the delete key event as it
171+
// will make delete key not work in the search text box text! Eg. Ctrl-shift-o, type text,
172+
// press delete key to remove text chars will fail is we prevent default here without
173+
// a valid selection.
170174
} else if (event.keyCode === KeyEvent.DOM_VK_DOWN) {
171175
// Highlight changes are always done synchronously on the currently shown result list. If the list
172176
// later changes, the highlight is reset to the top

0 commit comments

Comments
 (0)