From a3af1917724a6b652e72927a0fe8a550cc976a40 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Wed, 9 Jul 2025 00:02:56 -0400 Subject: Fix command palette focus stealing when clicking elsewhere. When clicking outside the command palette, focus is now properly transferred to the clicked widget instead of being restored to the previously focused widget. Escape key still restores focus as expected. --- ui/commandpalette.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/commandpalette.h b/ui/commandpalette.h index d697f608..fcb27b31 100644 --- a/ui/commandpalette.h +++ b/ui/commandpalette.h @@ -158,7 +158,7 @@ class BINARYNINJAUIAPI CommandPalette : public QFrame //! Activate the focused item, or topmost item if there is no selection. void activateFocusedItem(); void selectFirstItem(); - void close(); + void close(bool restoreFocus = true); private Q_SLOTS: void itemClicked(const QModelIndex& idx); -- cgit v1.3.1