From 2300b8adab373cd818d1b63b20536bf20034f33c Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Wed, 25 Jan 2012 22:42:03 +0000 Subject: Added key shortcut for bookmark, handle menut item "Hide Toolbars" svn path=/trunk/netsurf/; revision=13407 --- atari/global_evnt.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/atari/global_evnt.c b/atari/global_evnt.c index bb44601f1..3170b8a9e 100755 --- a/atari/global_evnt.c +++ b/atari/global_evnt.c @@ -248,8 +248,13 @@ static void __CDECL menu_reload(WINDOW *win, int item, int title, void *data) } static void __CDECL menu_toolbars(WINDOW *win, int item, int title, void *data) -{ - LOG(("%s", __FUNCTION__)); +{ + static int state = 0; + LOG(("%s", __FUNCTION__)); + if( input_window != null && input_window->root->toolbar != null ){ + state = !state; + tb_hide( input_window, state ); + } } static void __CDECL menu_savewin(WINDOW *win, int item, int title, void *data) @@ -381,7 +386,7 @@ static struct s_menu_item_evnt menu_evnt_tbl[] = {T_NAV, MAINMENU_M_HOME, "Home", menu_home, {0,0,0}, NULL}, {T_UTIL, MAINMENU_M_LHISTORY, "HistLocal", menu_lhistory, {0,0,0}, NULL}, {T_UTIL, MAINMENU_M_GHISTORY, "HistGlobal", menu_ghistory, {0,0,0}, NULL}, - {T_UTIL, MAINMENU_M_ADD_BOOKMARK, "HotlistAdd", menu_add_bookmark, {0,0,0}, NULL}, + {T_UTIL, MAINMENU_M_ADD_BOOKMARK, "HotlistAdd", menu_add_bookmark, {'D',0,K_CTRL}, NULL}, {T_UTIL, MAINMENU_M_BOOKMARKS, "HotlistShow", menu_bookmarks, {0,0,0}, NULL}, {T_UTIL, MAINMENU_M_CHOICES, "Choices", menu_choices, {0,0,0}, NULL}, {T_UTIL, MAINMENU_M_VLOG, "Verbose Log", menu_vlog, {0,0,0}, NULL}, -- cgit v1.2.3