Skip to content

Commit a3af191

Browse files
committed
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.
1 parent d7445e2 commit a3af191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/commandpalette.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class BINARYNINJAUIAPI CommandPalette : public QFrame
158158
//! Activate the focused item, or topmost item if there is no selection.
159159
void activateFocusedItem();
160160
void selectFirstItem();
161-
void close();
161+
void close(bool restoreFocus = true);
162162

163163
private Q_SLOTS:
164164
void itemClicked(const QModelIndex& idx);

0 commit comments

Comments
 (0)