From 452cb2d488caebe12cba6d9cdda3529c8b406dc3 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Tue, 14 Jan 2025 12:57:10 +1100
Subject: minor refactoring

---
 utils/widgets.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'utils/widgets.tsx')

diff --git a/utils/widgets.tsx b/utils/widgets.tsx
index a0a96cb..ab916fc 100644
--- a/utils/widgets.tsx
+++ b/utils/widgets.tsx
@@ -82,7 +82,6 @@ export class PopupWindow extends Widget.Window {
         }
     ) {
         const {
-            onKeyPressEvent,
             clickThrough,
             child,
             halign = Gtk.Align.START,
@@ -102,7 +101,7 @@ export class PopupWindow extends Widget.Window {
             // Close window on escape
             if (event.get_keyval()[1] === Gdk.KEY_Escape) self.hide();
 
-            return onKeyPressEvent?.(self, event);
+            return props.onKeyPressEvent?.(self, event);
         };
         super(sProps);
 
-- 
cgit v1.2.3-freya

