Another famous "forgotten break in switch statement" bug...

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@552 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2003-12-08 15:28:24 +00:00
parent 454e01b591
commit 539da0823b

View File

@ -323,6 +323,7 @@ handle_special_keys(uint32 keysym, unsigned int state, uint32 ev_time, BOOL pres
} }
/* No release sequence */ /* No release sequence */
return True; return True;
break;
case XK_Pause: case XK_Pause:
/* According to MS Keyboard Scan Code /* According to MS Keyboard Scan Code
@ -349,30 +350,34 @@ handle_special_keys(uint32 keysym, unsigned int state, uint32 ev_time, BOOL pres
0x1d, 0); 0x1d, 0);
} }
return True; return True;
break;
case XK_Meta_L: /* Windows keys */ case XK_Meta_L: /* Windows keys */
case XK_Super_L: case XK_Super_L:
case XK_Hyper_L: case XK_Hyper_L:
send_winkey(ev_time, pressed, True); send_winkey(ev_time, pressed, True);
return True; return True;
break;
case XK_Meta_R: case XK_Meta_R:
case XK_Super_R: case XK_Super_R:
case XK_Hyper_R: case XK_Hyper_R:
send_winkey(ev_time, pressed, False); send_winkey(ev_time, pressed, False);
return True; return True;
break;
case XK_space: case XK_space:
/* Prevent access to the Windows system menu in single app mode */ /* Prevent access to the Windows system menu in single app mode */
if (g_win_button_size if (g_win_button_size
&& (get_key_state(state, XK_Alt_L) || get_key_state(state, XK_Alt_R))) && (get_key_state(state, XK_Alt_L) || get_key_state(state, XK_Alt_R)))
return True; return True;
break;
case XK_Num_Lock: case XK_Num_Lock:
/* FIXME: We might want to do RDP_INPUT_SYNCHRONIZE here, if g_numlock_sync */ /* FIXME: We might want to do RDP_INPUT_SYNCHRONIZE here, if g_numlock_sync */
if (!g_numlock_sync) if (!g_numlock_sync)
/* Inhibit */ /* Inhibit */
return True; return True;
break;
} }
return False; return False;