aboutsummaryrefslogtreecommitdiff
path: root/ext/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-02 18:18:31 -0500
committerGitHub <noreply@github.com>2021-03-02 18:18:31 -0500
commit571b865ae5207acb8e58a5ee38e4ed900194f7fb (patch)
treecd7cef51009739579d4547e357b3b2dbe16a8e81 /ext/js
parent0e705292cc0c1196901e53670e7b89a70cc1556c (diff)
Fix enter key causing duplicate text when typing using an IME (#1477)
Diffstat (limited to 'ext/js')
-rw-r--r--ext/js/display/search-display-controller.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/js/display/search-display-controller.js b/ext/js/display/search-display-controller.js
index bf75e928..cabdf1b2 100644
--- a/ext/js/display/search-display-controller.js
+++ b/ext/js/display/search-display-controller.js
@@ -171,6 +171,7 @@ class SearchDisplayController {
}
_onSearchKeydown(e) {
+ if (e.isComposing) { return; }
const {code} = e;
if (!((code === 'Enter' || code === 'NumpadEnter') && !e.shiftKey)) { return; }