summaryrefslogtreecommitdiff
path: root/ui/commandpalette.h
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2025-07-09 00:02:56 -0400
committerBrian Potchik <brian@vector35.com>2025-07-09 00:02:56 -0400
commita3af1917724a6b652e72927a0fe8a550cc976a40 (patch)
tree546fc8129b69e1d3a5ddc129a1f14197215d79d5 /ui/commandpalette.h
parentd7445e232501ba60fb780f2c18500c0b509fc97e (diff)
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.
Diffstat (limited to 'ui/commandpalette.h')
-rw-r--r--ui/commandpalette.h2
1 files changed, 1 insertions, 1 deletions
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);