2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
User interface services - X keyboard mapping |
User interface services - X keyboard mapping |
4 |
|
|
5 |
Copyright (C) Matthew Chapman 1999-2002 |
Copyright (C) Matthew Chapman 1999-2005 |
6 |
Copyright (C) Peter Astrand <peter@cendio.se> 2003 |
Copyright (C) Peter Astrand <peter@cendio.se> 2003 |
7 |
|
|
8 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
408 |
} |
} |
409 |
} |
} |
410 |
|
|
411 |
if (((remote_modifier_state & MapLeftCtrlMask) |
if ((tr.modifiers & MapLeftShiftMask) && ((remote_modifier_state & MapLeftCtrlMask) |
412 |
|| (remote_modifier_state & MapRightCtrlMask)) && get_key_state(state, XK_Caps_Lock)) |
|| (remote_modifier_state & MapRightCtrlMask)) |
413 |
|
&& get_key_state(state, XK_Caps_Lock)) |
414 |
{ |
{ |
415 |
DEBUG_KBD(("CapsLock + Ctrl pressed, releasing LeftShift\n")); |
DEBUG_KBD(("CapsLock + Ctrl pressed, releasing LeftShift\n")); |
416 |
tr.modifiers ^= MapLeftShiftMask; |
tr.modifiers ^= MapLeftShiftMask; |