more fixes

* add default key combos to Hotkeys
* impement moving countable items holding Ctrl or Shift
* fix messagebox incorrent size
* implement API in Keyboard to get modifiers key states
* minor UI layout fixes
* add Ctrl+L logout hotkey
This commit is contained in:
Eduardo Bart
2012-06-07 09:25:41 -03:00
parent 486837a61d
commit 066ffead08
7 changed files with 39 additions and 6 deletions

View File

@@ -68,9 +68,18 @@ end
function HotkeysManager.load()
local hotkeySettings = Settings.getNode('HotkeysManager')
local hasCombos = false
if hotkeySettings ~= nil then
for i, v in pairs(hotkeySettings) do
HotkeysManager.addKeyCombo(nil, v.keyCombo, v)
hasCombos = true
end
end
-- add default F keys combos
if not hasCombos then
for i=1,12 do
HotkeysManager.addKeyCombo(nil, 'F' .. i, nil)
end
end
end