Skip to content

Commit 3adc01e

Browse files
authored
Merge pull request #149 from nwg-piotr/repair_dmenu
Closes #141
2 parents 1e99599 + 7fbb527 commit 3adc01e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dmenu/dmenu_classes.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ bool DMenu::on_key_press_event(GdkEventKey* key_event) {
102102
this -> searchbox.set_text(this -> search_phrase);
103103
this -> filter_view();
104104
return true;
105-
} else if (key_event -> keyval == GDK_KEY_Return) {
105+
} else if (this -> get_children().size() == 2 && key_event -> keyval == GDK_KEY_Return) {
106106
// Workaround to launch the single item which has been selected programmatically
107107
this -> get_children()[1] -> activate();
108108
return true;

0 commit comments

Comments
 (0)