properly exit url hint mode on Esc key
This commit is contained in:
parent
21d15c0cb6
commit
a7458fba67
|
@ -448,8 +448,9 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info)
|
||||||
}
|
}
|
||||||
switch (event->keyval) {
|
switch (event->keyval) {
|
||||||
case GDK_KEY_Escape:
|
case GDK_KEY_Escape:
|
||||||
gtk_widget_hide(info->panel.entry);
|
exit_command_mode(info->panel.vte, &info->select);
|
||||||
exit_command_mode(vte, &info->select);
|
gtk_widget_hide(info->panel.da);
|
||||||
|
info->panel.url_list.clear();
|
||||||
break;
|
break;
|
||||||
case GDK_KEY_Left:
|
case GDK_KEY_Left:
|
||||||
case GDK_KEY_h:
|
case GDK_KEY_h:
|
||||||
|
@ -595,7 +596,6 @@ gboolean entry_key_press_cb(GtkEntry *entry, GdkEventKey *event, keybind_info *i
|
||||||
break;
|
break;
|
||||||
case overlay_mode::urlselect:
|
case overlay_mode::urlselect:
|
||||||
launch_url(text, &info->panel);
|
launch_url(text, &info->panel);
|
||||||
exit_command_mode(info->panel.vte, &info->select);
|
|
||||||
break;
|
break;
|
||||||
case overlay_mode::hidden:
|
case overlay_mode::hidden:
|
||||||
break;
|
break;
|
||||||
|
@ -616,6 +616,7 @@ gboolean entry_key_press_cb(GtkEntry *entry, GdkEventKey *event, keybind_info *i
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
if (info->panel.mode == overlay_mode::urlselect) {
|
if (info->panel.mode == overlay_mode::urlselect) {
|
||||||
|
exit_command_mode(info->panel.vte, &info->select);
|
||||||
gtk_widget_hide(info->panel.da);
|
gtk_widget_hide(info->panel.da);
|
||||||
info->panel.url_list.clear();
|
info->panel.url_list.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue