add bindings for copy/paste to/from CLIPBOARD

This commit is contained in:
Daniel Micay 2012-05-23 05:40:04 -04:00
parent d8d462ec1d
commit 3771e54a9c
2 changed files with 9 additions and 0 deletions

View File

@ -14,6 +14,9 @@ You can use vte3 by building with ``make GTK3=1``.
KEYBINDINGS
===========
* ``ctrl-shift-c``: copy to CLIPBOARD (useful for yanking search matches)
* ``ctrl-shift-v``: paste from CLIPBOARD
Scrollback search:
* ``ctrl-/``: start forward search

View File

@ -82,6 +82,12 @@ static gboolean key_press_cb(GtkWidget *vte, GdkEventKey *event, search_dialog_i
if (modifiers == (GDK_CONTROL_MASK|GDK_SHIFT_MASK)) {
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:
vte_terminal_search_find_previous(VTE_TERMINAL(vte));
return TRUE;