From fe5d39821f700481a3601136d8c1b0e53403d232 Mon Sep 17 00:00:00 2001 From: NuPogodi Date: Thu, 6 Sep 2012 19:39:53 +0300 Subject: [PATCH] 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. --- commands.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/commands.lua b/commands.lua index 2b793092e..4957552be 100644 --- a/commands.lua +++ b/commands.lua @@ -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