only the hints mode shortcut should exit cmd mode
This commit is contained in:
parent
c1567594c9
commit
266f1fb44e
|
@ -665,6 +665,7 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, keybind_info *info)
|
||||||
find_urls(vte, &info->panel);
|
find_urls(vte, &info->panel);
|
||||||
gtk_widget_show(info->panel.da);
|
gtk_widget_show(info->panel.da);
|
||||||
overlay_show(&info->panel, overlay_mode::urlselect, false);
|
overlay_show(&info->panel, overlay_mode::urlselect, false);
|
||||||
|
exit_command_mode(vte, &info->select);
|
||||||
case GDK_KEY_c:
|
case GDK_KEY_c:
|
||||||
vte_terminal_copy_clipboard(vte);
|
vte_terminal_copy_clipboard(vte);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -742,7 +743,6 @@ 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