Commit b34bf25
fix(gtk): prevent PathChooser Enter key hang inside dialogs
When Enter is pressed in a PathChooser text entry, it opens the
stored-values popup which does a seat.grab(). Inside a modal dialog,
the nested grab deadlocks GTK's event loop, requiring a force quit.
Fix: when the widget's toplevel is a Gtk.Dialog, skip the popup and
call activate_default() to confirm the dialog. This is needed because
entry_text lacks activates-default, so simply propagating Enter does
not reach the dialog's default button.
Affects all five PathChooser uses in dialogs (move storage, add
torrent ×2, preferences ×3). The standalone use in OptionsTab
(parented to the main window) is unaffected.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e580754 commit b34bf25
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1438 | 1438 | | |
1439 | 1439 | | |
1440 | 1440 | | |
1441 | | - | |
| 1441 | + | |
| 1442 | + | |
1442 | 1443 | | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
1443 | 1447 | | |
1444 | 1448 | | |
1445 | 1449 | | |
| |||
0 commit comments