From 87656129f7287e9db2d7b81b72a5ee5bd5febed3 Mon Sep 17 00:00:00 2001 From: Ksaper Date: Fri, 24 Feb 2023 22:17:01 +0200 Subject: [PATCH] ::press gets called consisntely when holding down a key and that will cause lag when scrolling --- widget/app_launcher/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/app_launcher/init.lua b/widget/app_launcher/init.lua index b84f655..fa779b4 100644 --- a/widget/app_launcher/init.lua +++ b/widget/app_launcher/init.lua @@ -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