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
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-07 15:41:59 -0500
commit51fba512d36aa113c3cb89622ef1f23d1c24e8b5 (patch)
tree58667d8cfc3f55421cc21aa5373fadcd7a73d381 /ext/js
parent488dc486f1a3f435e6bf182295c38cb49fb755b7 (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; }