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 ((tr.modifiers & MapLeftShiftMask) && ((remote_modifier_state & MapLeftCtrlMask) |
412 |
|
|| (remote_modifier_state & MapRightCtrlMask)) |
413 |
|
&& get_key_state(state, XK_Caps_Lock)) |
414 |
|
{ |
415 |
|
DEBUG_KBD(("CapsLock + Ctrl pressed, releasing LeftShift\n")); |
416 |
|
tr.modifiers ^= MapLeftShiftMask; |
417 |
|
} |
418 |
|
|
419 |
if (tr.scancode != 0) |
if (tr.scancode != 0) |
420 |
{ |
{ |
421 |
DEBUG_KBD(("Found key translation, scancode=0x%x, modifiers=0x%x\n", |
DEBUG_KBD(("Found key translation, scancode=0x%x, modifiers=0x%x\n", |