Added: command 'make screenshot'

Now one may gradually remove 'make screenshot'-duplicates from other Lua-modules.
TODO: Since Shift+P is in use in inputbox to enter char 'P', one should discuss replacing Shift+P by something else, that is still free. Just an info: inputbox uses all buttons without modifiers => small characters; all buttons with Shift => CAPITALS; Alt+Q..P = digits (0..9) and etc.
This commit is contained in:
NuPogodi
2012-09-06 19:39:53 +03:00
parent 093f99aaa7
commit fe5d39821f

View File

@@ -222,5 +222,12 @@ function Commands:new(obj)
G_charging_mode = false
end
)
-- Shift+P would be overwritten in inputbox by entering char 'P'
-- I suggest one should probably change the hotkey to, say, Alt+Space
obj:add(KEY_P, MOD_SHIFT, "P", "make screenshot",
function()
Screen:screenshot()
end
)
return obj
end