add bindings for copy/paste to/from CLIPBOARD
This commit is contained in:
parent
d8d462ec1d
commit
3771e54a9c
|
@ -14,6 +14,9 @@ You can use vte3 by building with ``make GTK3=1``.
|
||||||
KEYBINDINGS
|
KEYBINDINGS
|
||||||
===========
|
===========
|
||||||
|
|
||||||
|
* ``ctrl-shift-c``: copy to CLIPBOARD (useful for yanking search matches)
|
||||||
|
* ``ctrl-shift-v``: paste from CLIPBOARD
|
||||||
|
|
||||||
Scrollback search:
|
Scrollback search:
|
||||||
|
|
||||||
* ``ctrl-/``: start forward search
|
* ``ctrl-/``: start forward search
|
||||||
|
|
|
@ -82,6 +82,12 @@ static gboolean key_press_cb(GtkWidget *vte, GdkEventKey *event, search_dialog_i
|
||||||
|
|
||||||
if (modifiers == (GDK_CONTROL_MASK|GDK_SHIFT_MASK)) {
|
if (modifiers == (GDK_CONTROL_MASK|GDK_SHIFT_MASK)) {
|
||||||
switch (gdk_keyval_to_lower(event->keyval)) {
|
switch (gdk_keyval_to_lower(event->keyval)) {
|
||||||
|
case GDK_c:
|
||||||
|
vte_terminal_copy_clipboard(VTE_TERMINAL(vte));
|
||||||
|
return TRUE;
|
||||||
|
case GDK_v:
|
||||||
|
vte_terminal_paste_clipboard(VTE_TERMINAL(vte));
|
||||||
|
return TRUE;
|
||||||
case GDK_p:
|
case GDK_p:
|
||||||
vte_terminal_search_find_previous(VTE_TERMINAL(vte));
|
vte_terminal_search_find_previous(VTE_TERMINAL(vte));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in New Issue