diff options
Diffstat (limited to 'player')
-rw-r--r-- | player/lua/console.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/player/lua/console.lua b/player/lua/console.lua index 807d7e928b..f61be81a03 100644 --- a/player/lua/console.lua +++ b/player/lua/console.lua @@ -81,6 +81,7 @@ local repl_active = false local osd_msg_active = false local insert_mode = false local pending_update = false +local ime_active = mp.get_property_bool('input-ime') local line = '' local cursor = 1 local default_prompt = '>' @@ -1882,6 +1883,8 @@ set_active = function (active) insert_mode = false define_key_bindings() mp.set_property_bool('user-data/mpv/console/open', true) + ime_active = mp.get_property_bool('input-ime') + mp.set_property_bool('input-ime', true) if not input_caller then prompt = default_prompt @@ -1903,6 +1906,7 @@ set_active = function (active) undefine_key_bindings() mp.enable_messages('silent:terminal-default') mp.set_property_bool('user-data/mpv/console/open', false) + mp.set_property_bool('input-ime', ime_active) if input_caller then mp.commandv('script-message-to', input_caller, 'input-event', |