add arrow key bindings for selection
This commit is contained in:
parent
e667bb9d9d
commit
d2e627e10a
|
@ -123,10 +123,12 @@ gboolean key_press_cb(VteTerminal *vte, GdkEventKey *event, search_panel_info *i
|
||||||
gboolean dynamic_title = FALSE, urgent_on_bell = FALSE, clickable_url = FALSE;
|
gboolean dynamic_title = FALSE, urgent_on_bell = FALSE, clickable_url = FALSE;
|
||||||
if (info->select.mode) {
|
if (info->select.mode) {
|
||||||
switch (event->keyval) {
|
switch (event->keyval) {
|
||||||
|
case GDK_KEY_Left:
|
||||||
case GDK_KEY_h:
|
case GDK_KEY_h:
|
||||||
info->select.end--;
|
info->select.end--;
|
||||||
update_selection(vte, &info->select);
|
update_selection(vte, &info->select);
|
||||||
break;
|
break;
|
||||||
|
case GDK_KEY_Right:
|
||||||
case GDK_KEY_l:
|
case GDK_KEY_l:
|
||||||
info->select.end++;
|
info->select.end++;
|
||||||
update_selection(vte, &info->select);
|
update_selection(vte, &info->select);
|
||||||
|
|
Loading…
Reference in New Issue