aboutsummaryrefslogtreecommitdiff
path: root/core/keys.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-08-26 21:47:55 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-08-26 21:47:55 -0400
commitacda712a50dbebafa295ccd07ce8186d9b82aa10 (patch)
tree0ab9229205aad0ac09bcdb0e9bc71c4f1bd87168 /core/keys.lua
parent8a6341ae8db36e1b6857f90c39865d254dcdc163 (diff)
downloadtextadept-acda712a50dbebafa295ccd07ce8186d9b82aa10.tar.gz
textadept-acda712a50dbebafa295ccd07ce8186d9b82aa10.zip
Renamed `gui` to `ui` since it's more applicable.
Diffstat (limited to 'core/keys.lua')
-rw-r--r--core/keys.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/keys.lua b/core/keys.lua
index 1f7a023a..59c92f51 100644
--- a/core/keys.lua
+++ b/core/keys.lua
@@ -80,13 +80,13 @@ local M = {}
-- ['l'] = buffer.char_right,
-- ['i'] = function()
-- keys.MODE = nil
--- gui.statusbar_text = 'INSERT MODE'
+-- ui.statusbar_text = 'INSERT MODE'
-- end
-- }
-- keys['esc'] = function() keys.MODE = 'command_mode' end
-- events.connect(events.UPDATE_UI, function()
-- if keys.MODE == 'command_mode' then return end
--- gui.statusbar_text = 'INSERT MODE'
+-- ui.statusbar_text = 'INSERT MODE'
-- end)
-- keys.MODE = 'command_mode' -- default mode
--
@@ -221,7 +221,7 @@ local function key_command(prefix)
local key_type = type(key)
if key_type ~= 'function' and key_type ~= 'table' then return INVALID end
if key_type == 'table' and #key == 0 and next(key) or getmetatable(key) then
- gui.statusbar_text = _L['Keychain:']..' '..table.concat(keychain, ' ')
+ ui.statusbar_text = _L['Keychain:']..' '..table.concat(keychain, ' ')
return CHAIN
end
return run_command(key, key_type) == false and PROPAGATE or HALT
@@ -246,8 +246,8 @@ local function keypress(code, shift, control, alt, meta)
(meta and OSX and META or '')..(shift and SHIFT or '')..key
--print(key_seq)
- gui.statusbar_text = ''
- --if CURSES then gui.statusbar_text = '"'..key_seq..'"' end
+ ui.statusbar_text = ''
+ --if CURSES then ui.statusbar_text = '"'..key_seq..'"' end
local keychain_size = #keychain
if keychain_size > 0 and key_seq == M.CLEAR then
clear_key_sequence()
@@ -265,7 +265,7 @@ local function keypress(code, shift, control, alt, meta)
if status ~= CHAIN then clear_key_sequence() end
if status > PROPAGATE then return true end -- CHAIN or HALT
if status == INVALID and keychain_size > 0 then
- gui.statusbar_text = _L['Invalid sequence']
+ ui.statusbar_text = _L['Invalid sequence']
return true
end
-- PROPAGATE otherwise.