::press gets called consisntely when holding down a key and that will cause lag when scrolling

This commit is contained in:
Ksaper 2023-02-24 22:17:01 +02:00
parent 7e33e62486
commit 87656129f7
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ local function build_widget(self)
self._private.search_timer:again()
end)
self._private.prompt:connect_signal("key::press", function(_, mod, key, cmd)
self._private.prompt:connect_signal("key::release", function(_, mod, key, cmd)
if key == "Escape" then
self:hide()
end