summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-07-04 19:16:48 +0200
committerPřemysl Eric Janouch <p@janouch.name>2024-07-04 20:06:59 +0200
commit175533a5e9a0892e1648782cc9bf6c7ec8917a38 (patch)
tree9b6dd724ea08f8906184b08ea7516f859d3065bb
parenta9b46141a991b3c3dba31beb262bf204537049d2 (diff)
downloadxK-175533a5e9a0892e1648782cc9bf6c7ec8917a38.tar.gz
xK-175533a5e9a0892e1648782cc9bf6c7ec8917a38.tar.xz
xK-175533a5e9a0892e1648782cc9bf6c7ec8917a38.zip
xP: don't interrupt IME composition
On Vivaldi/macOS, pressing Enter would send the input and still keep editing it as it was.
-rw-r--r--xP/public/xP.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/xP/public/xP.js b/xP/public/xP.js
index a6cc303..6452038 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -997,7 +997,7 @@ let Input = {
rpc.send({command: 'Active'})
let b = buffers.get(bufferCurrent)
- if (b === undefined)
+ if (b === undefined || event.isComposing)
return
let textarea = event.currentTarget