Ignore keypresses during IME composition (#1573)
Some IMEs continue sending keypresses even during composition, so we just ignore them.
This commit is contained in:
@@ -203,10 +203,6 @@ end
|
||||
-- Events listening
|
||||
--------------------------------------------------------------------------------
|
||||
function keymap.on_key_pressed(k, ...)
|
||||
-- In MacOS and Windows during IME composition input is still sent to us
|
||||
-- so we just ignore it
|
||||
if PLATFORM ~= "Linux" and ime.editing then return false end
|
||||
|
||||
local mk = modkey_map[k]
|
||||
if mk then
|
||||
keymap.modkeys[mk] = true
|
||||
|
||||
Reference in New Issue
Block a user