Add context to the unfocus signal
This commit is contained in:
parent
6c76dc9b17
commit
566a5a9bd9
|
@ -736,7 +736,7 @@ function text_input:focus()
|
|||
self:emit_signal("focus")
|
||||
end
|
||||
|
||||
function text_input:unfocus()
|
||||
function text_input:unfocus(context)
|
||||
local wp = self._private
|
||||
if self:get_focused() == false then
|
||||
return
|
||||
|
@ -751,7 +751,7 @@ function text_input:unfocus()
|
|||
|
||||
awful.keygrabber.stop(wp.keygrabber)
|
||||
wp.focused = false
|
||||
self:emit_signal("unfocus", self:get_text())
|
||||
self:emit_signal("unfocus", context or "normal", self:get_text())
|
||||
end
|
||||
|
||||
function text_input:toggle()
|
||||
|
|
Loading…
Reference in New Issue