forked from enlightenment/terminology
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
This commit is contained in:
parent
db0f11758d
commit
6e04128e7d
|
@ -880,6 +880,32 @@ _smart_cb_key_down(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__,
|
|||
evas_object_smart_callback_call(data, "cmdbox", NULL);
|
||||
goto end;
|
||||
}
|
||||
if ((evas_key_modifier_is_set(ev->modifiers, "Alt")) &&
|
||||
(evas_key_modifier_is_set(ev->modifiers, "Control")) &&
|
||||
(!evas_key_modifier_is_set(ev->modifiers, "Shift")))
|
||||
{
|
||||
_compose_seq_reset(sd);
|
||||
if (!strcmp(ev->keyname, "equal"))
|
||||
{
|
||||
termcmd_do(data, NULL, NULL, "f+");
|
||||
goto end;
|
||||
}
|
||||
else if (!strcmp(ev->keyname, "minus"))
|
||||
{
|
||||
termcmd_do(data, NULL, NULL, "f-");
|
||||
goto end;
|
||||
}
|
||||
else if (!strcmp(ev->keyname, "0"))
|
||||
{
|
||||
termcmd_do(data, NULL, NULL, "f");
|
||||
goto end;
|
||||
}
|
||||
else if (!strcmp(ev->keyname, "9"))
|
||||
{
|
||||
termcmd_do(data, NULL, NULL, "fb");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
if (evas_key_modifier_is_set(ev->modifiers, "Shift"))
|
||||
{
|
||||
if (ev->keyname)
|
||||
|
|
Loading…
Reference in New Issue