hotkey_popup: Use awful.keygrabber instead of capi.keygrabber
This commit is contained in:
parent
ff743b375f
commit
efe82faf1c
|
@ -9,7 +9,6 @@
|
||||||
local capi = {
|
local capi = {
|
||||||
screen = screen,
|
screen = screen,
|
||||||
client = client,
|
client = client,
|
||||||
keygrabber = keygrabber,
|
|
||||||
}
|
}
|
||||||
local awful = require("awful")
|
local awful = require("awful")
|
||||||
local gtable = require("gears.table")
|
local gtable = require("gears.table")
|
||||||
|
@ -519,7 +518,7 @@ function widget.new(args)
|
||||||
local help_wibox = self._cached_wiboxes[s][joined_groups]
|
local help_wibox = self._cached_wiboxes[s][joined_groups]
|
||||||
help_wibox:show()
|
help_wibox:show()
|
||||||
|
|
||||||
return capi.keygrabber.run(function(_, key, event)
|
return awful.keygrabber.run(function(_, key, event)
|
||||||
if event == "release" then return end
|
if event == "release" then return end
|
||||||
if key then
|
if key then
|
||||||
if key == "Next" then
|
if key == "Next" then
|
||||||
|
@ -527,7 +526,7 @@ function widget.new(args)
|
||||||
elseif key == "Prior" then
|
elseif key == "Prior" then
|
||||||
help_wibox:page_prev()
|
help_wibox:page_prev()
|
||||||
else
|
else
|
||||||
capi.keygrabber.stop()
|
awful.keygrabber.stop()
|
||||||
help_wibox:hide()
|
help_wibox:hide()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue