Improve IME location updates (#1170)

* Avoid updating IME input rect if it hasn't changed
* Update the IME input rect even when the composition didn't change
* Apply IME input blocking workaround to non-Linux only
This commit is contained in:
Guldoman
2022-12-20 20:11:13 -04:00
committed by GitHub
parent 24179bbb23
commit c42f01ed1f
3 changed files with 30 additions and 7 deletions
+2 -2
View File
@@ -178,9 +178,9 @@ end
-- Events listening
--------------------------------------------------------------------------------
function keymap.on_key_pressed(k, ...)
-- In Windows during IME composition, input is still sent to us
-- In MacOS and Windows during IME composition input is still sent to us
-- so we just ignore it
if ime.editing then return false end
if PLATFORM ~= "Linux" and ime.editing then return false end
local mk = modkey_map[k]
if mk then