[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] patch:XaAES:k_keybd
-------------------------------------------------------------
added return in switch to avoid fallthrough
removed redundant break
-------------------------------------------------------------
diff -u -B -I '$Id' src.cvs/k_keybd.c src.km/k_keybd.c
--- src.cvs/k_keybd.c 2010-01-09 19:14:35.000000000 +0100
+++ src.km/k_keybd.c 2010-01-13 11:59:00.812500000 +0100
@@ -473,20 +473,19 @@
post_cevent(C.Hlp, CE_winctxt, TOP_WINDOW, NULL, 0,0, NULL, &md);
}
return true;
- break;
case 'B': /* system-window ('S' eaten by MiNT?)*/
if( !C.update_lock )
{
post_cevent(C.Hlp, ceExecfunc, open_systemalerts,NULL, 1, 0, NULL,NULL);
}
return true;
- case NK_HELP:
+ case NK_HELP: /* about-window */
if( !C.update_lock )
{
post_cevent(C.Hlp, ceExecfunc, open_about,NULL, 1,0, NULL,NULL);
}
return true;
- case 'K': /* about-window */
+ case 'K': /* launcher */
if( !C.update_lock )
{
post_cevent(C.Hlp, ceExecfunc, open_launcher,NULL, 1,0, NULL,NULL);
@@ -497,6 +496,7 @@
{
update_windows_below(lock, &screen.r, NULL, window_list, NULL);
redraw_menu(lock);
+ return true;
}
case 'M': /* ctrl+alt+M recover mouse */
{