From d3a0eafd074536440b5bd1ef299a17d0174e0927 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Fri, 29 Jun 2012 13:33:37 +0000 Subject: [PATCH] add ctrl+shift+ins for pasting primary and add info to READMe about mouse/kbd controls. SVN revision: 73037 --- README | 22 +++++++++++++++++++--- src/bin/termio.c | 5 ++++- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/README b/README index 09178326..5fdec77e 100644 --- a/README +++ b/README @@ -27,9 +27,25 @@ Once you have met requirements, compiling and installing is simple: make make install -Note: to make accented chars with deadkeys work, you need to use an -input method handler. Right now only XIM works, so try this before you -run terminology: +Note: to make terminology work with input methods in general you need: export ECORE_IMF_MODULE="xim" export XMODIFIERS="@im=none" + +Special key controls: + +Shift+PgUp = Scroll 1 page up +Shift+PgDn = Scroll 1 page down +Shift+Insert = Paste Clipboard (ctrl+v/c) selection +Shift+Ctrl+Insert = Paste Primary (hilight) selection +Shift+Keypad-Plus = Font size up 1 +Shift+Keypad-Minus = Font size down 1 +Shift+Keypad-Multiply = Reset font size to 10 +Shift+Keypad-Divide = Copy highlight to Clipboard (same as ctrl+c in gui apps) + +Mouse controls: + +Right mouse button = controls menu +Middle mouse button = paste highlight selection +Left mouse button/drag = make highlight +Wheel = scroll up or down in history diff --git a/src/bin/termio.c b/src/bin/termio.c index 4ee9bd29..d529097d 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -505,7 +505,10 @@ _smart_cb_key_down(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, { EINA_LIST_FREE(sd->seq, str) eina_stringshare_del(str); sd->composing = EINA_FALSE; - _paste_selection(data, ELM_SEL_TYPE_CLIPBOARD); + if (evas_key_modifier_is_set(ev->modifiers, "Control")) + _paste_selection(data, ELM_SEL_TYPE_PRIMARY); + else + _paste_selection(data, ELM_SEL_TYPE_CLIPBOARD); goto end; } else if (!strcmp(ev->keyname, "KP_Add"))