Fix enter key causing duplicate text when typing using an IME (#1477)

This commit is contained in:
toasted-nutbread 2021-03-02 18:18:31 -05:00 committed by GitHub
parent 0e705292cc
commit 571b865ae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,6 +171,7 @@ class SearchDisplayController {
} }
_onSearchKeydown(e) { _onSearchKeydown(e) {
if (e.isComposing) { return; }
const {code} = e; const {code} = e;
if (!((code === 'Enter' || code === 'NumpadEnter') && !e.shiftKey)) { return; } if (!((code === 'Enter' || code === 'NumpadEnter') && !e.shiftKey)) { return; }