diff options
Diffstat (limited to 'awesompd.lua')
-rw-r--r-- | awesompd.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/awesompd.lua b/awesompd.lua index 1a1e0aa..f59d77d 100644 --- a/awesompd.lua +++ b/awesompd.lua @@ -30,6 +30,7 @@ local beautiful = require('beautiful') local naughty = naughty local awful = awful local format = string.format +local keygrabber = keygrabber -- Debug stuff @@ -921,8 +922,10 @@ end -- Use it like this: -- self:display_inputbox("Search music on Jamendo", "Artist", print) function awesompd:display_inputbox(title_text, prompt_text, hook) - if self.inputbox then -- Inputbox already exists, do nothing - return + if self.inputbox then -- Inputbox already exists, replace it + keygrabber.stop() + self.inputbox.screen = nil + self.inputbox = nil end local width = 200 local height = 30 |