summaryrefslogtreecommitdiff
path: root/src/bin/keyin.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-03-17 18:46:39 +0100
committerBoris Faure <billiob@gmail.com>2015-03-17 18:46:39 +0100
commit33322d04af384c98b6f98117c3d55dbe833a3e2b (patch)
tree03c96a478c131182ebee2df40f9c295731e2f268 /src/bin/keyin.c
parent7edeea350332427b1045e79a457cddb2e6f812bc (diff)
toggle fullscreen by pressing F11
Diffstat (limited to 'src/bin/keyin.c')
-rw-r--r--src/bin/keyin.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bin/keyin.c b/src/bin/keyin.c
index c3c0442..2473f54 100644
--- a/src/bin/keyin.c
+++ b/src/bin/keyin.c
@@ -449,6 +449,19 @@ cb_miniview(Evas_Object *term)
449} 449}
450 450
451static Eina_Bool 451static Eina_Bool
452cb_win_fullscreen(Evas_Object *term)
453{
454 Evas_Object *win = termio_win_get(term);
455 Eina_Bool fullscreen;
456
457 if (!win)
458 return EINA_FALSE;
459 fullscreen = elm_win_fullscreen_get(win);
460 elm_win_fullscreen_set(win, !fullscreen);
461 return EINA_TRUE;
462}
463
464static Eina_Bool
452cb_increase_font_size(Evas_Object *term) 465cb_increase_font_size(Evas_Object *term)
453{ 466{
454 termcmd_do(term, NULL, NULL, "f+"); 467 termcmd_do(term, NULL, NULL, "f+");
@@ -565,6 +578,7 @@ static Shortcut_Action _actions[] =
565 {"reset_font_size", gettext_noop("Reset font size"), cb_reset_font_size}, 578 {"reset_font_size", gettext_noop("Reset font size"), cb_reset_font_size},
566 579
567 {"group", gettext_noop("Actions"), NULL}, 580 {"group", gettext_noop("Actions"), NULL},
581 {"win_fullscreen", gettext_noop("Toggle Fullscreen of the window"), cb_win_fullscreen},
568 {"miniview", gettext_noop("Display the history miniview"), cb_miniview}, 582 {"miniview", gettext_noop("Display the history miniview"), cb_miniview},
569 {"cmd_box", gettext_noop("Display the command box"), cb_cmd_box}, 583 {"cmd_box", gettext_noop("Display the command box"), cb_cmd_box},
570 584