Fix enter key causing duplicate text when typing using an IME (#1477)
This commit is contained in:
parent
0e705292cc
commit
571b865ae5
@ -171,6 +171,7 @@ class SearchDisplayController {
|
||||
}
|
||||
|
||||
_onSearchKeydown(e) {
|
||||
if (e.isComposing) { return; }
|
||||
const {code} = e;
|
||||
if (!((code === 'Enter' || code === 'NumpadEnter') && !e.shiftKey)) { return; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user