I saw the new documentation in luadoc/keygrabber.lua and found it useful
to make some prefix keys. Thanks. But I can't seem to make a prefix key
to be followed by a modified key (for example Super-q Shift-d). The shift
key seems to be handled as a keypress on its own, and not arrive in the
first (modifiers) argument somehow? Could anybody give an example of how
to do this?
My attempt was something like this...
function prefix_modkeyq(arg)
keygrabber.run(function(modifiers, key, event)
if event ~= "press" then return true end
local mod = {}
for k, v in ipairs(modifiers) do mod[v] = true end
if not mod.Shift then
if key == 'd' then do_clip("gdeen")
else keygrabber.stop() end
else
if key == 'd' then do_clip("gende")
else keygrabber.stop() end
end
return true
end)
end
--
To unsubscribe, send mail to [email protected].