minor: doc fixes for keygrabber.lua
This commit is contained in:
parent
3bccb0ab73
commit
532c113e1f
|
@ -28,7 +28,8 @@ local function grabber(mod, key, event)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Stop grabbing the keyboard for the provided callback.
|
--- Stop grabbing the keyboard for the provided callback.
|
||||||
-- When no callback is given, the least grabber gets removed (last one added to the stack).
|
-- When no callback is given, the last grabber gets removed (last one added to
|
||||||
|
-- the stack).
|
||||||
-- @param g The key grabber that must be removed.
|
-- @param g The key grabber that must be removed.
|
||||||
function keygrabber.stop(g)
|
function keygrabber.stop(g)
|
||||||
for i, v in ipairs(grabbers) do
|
for i, v in ipairs(grabbers) do
|
||||||
|
@ -37,7 +38,7 @@ function keygrabber.stop(g)
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- stop the global key grabber if the last grabber disappears from stack
|
-- Stop the global key grabber if the last grabber disappears from stack.
|
||||||
if #grabbers == 0 then
|
if #grabbers == 0 then
|
||||||
keygrabbing = false
|
keygrabbing = false
|
||||||
capi.keygrabber.stop()
|
capi.keygrabber.stop()
|
||||||
|
|
Loading…
Reference in New Issue