mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user