summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@profusion.mobi>2012-08-23 06:21:30 +0000
committerLeandro Pereira <leandro@profusion.mobi>2012-08-23 06:21:30 +0000
commit6e04128e7df88deccf22395db1caa2d9ee66d8ee (patch)
treef78d4aa4d642a20a2a9d4d6aacaf744625094140 /src
parentdb0f11758dd03f5e11463a0e93c42fd0d7f00130 (diff)
terminology: Add shortcuts to increase/decrease font sizes
Ctrl+Alt+= Increase Ctrl+Alt+- Decrease Ctrl+Alt+0 Normal size Ctrl+Alt+9 Big size SVN revision: 75591
Diffstat (limited to 'src')
-rw-r--r--src/bin/termio.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 58ce35d..97cb7f6 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -880,6 +880,32 @@ _smart_cb_key_down(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__,
880 evas_object_smart_callback_call(data, "cmdbox", NULL); 880 evas_object_smart_callback_call(data, "cmdbox", NULL);
881 goto end; 881 goto end;
882 } 882 }
883 if ((evas_key_modifier_is_set(ev->modifiers, "Alt")) &&
884 (evas_key_modifier_is_set(ev->modifiers, "Control")) &&
885 (!evas_key_modifier_is_set(ev->modifiers, "Shift")))
886 {
887 _compose_seq_reset(sd);
888 if (!strcmp(ev->keyname, "equal"))
889 {
890 termcmd_do(data, NULL, NULL, "f+");
891 goto end;
892 }
893 else if (!strcmp(ev->keyname, "minus"))
894 {
895 termcmd_do(data, NULL, NULL, "f-");
896 goto end;
897 }
898 else if (!strcmp(ev->keyname, "0"))
899 {
900 termcmd_do(data, NULL, NULL, "f");
901 goto end;
902 }
903 else if (!strcmp(ev->keyname, "9"))
904 {
905 termcmd_do(data, NULL, NULL, "fb");
906 goto end;
907 }
908 }
883 if (evas_key_modifier_is_set(ev->modifiers, "Shift")) 909 if (evas_key_modifier_is_set(ev->modifiers, "Shift"))
884 { 910 {
885 if (ev->keyname) 911 if (ev->keyname)