Change fullscreen toggle key to Ctrl-Alt-Enter.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@243 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
55fbfd2cec
commit
817a83c1d7
21
xkeymap.c
21
xkeymap.c
@ -240,19 +240,19 @@ handle_special_keys(uint32 keysym, unsigned int state, uint32 ev_time, BOOL pres
|
|||||||
{
|
{
|
||||||
switch (keysym)
|
switch (keysym)
|
||||||
{
|
{
|
||||||
case XK_Break:
|
case XK_Return:
|
||||||
case XK_Pause:
|
|
||||||
if ((get_key_state(state, XK_Alt_L) || get_key_state(state, XK_Alt_R))
|
if ((get_key_state(state, XK_Alt_L) || get_key_state(state, XK_Alt_R))
|
||||||
&& (get_key_state(state, XK_Control_L)
|
&& (get_key_state(state, XK_Control_L)
|
||||||
|| get_key_state(state, XK_Control_R)))
|
|| get_key_state(state, XK_Control_R)))
|
||||||
{
|
{
|
||||||
/* Ctrl-Alt-Break: toggle full screen */
|
/* Ctrl-Alt-Enter: toggle full screen */
|
||||||
if (pressed)
|
if (pressed)
|
||||||
xwin_toggle_fullscreen();
|
xwin_toggle_fullscreen();
|
||||||
|
return True;
|
||||||
}
|
}
|
||||||
else if (keysym == XK_Break)
|
break;
|
||||||
{
|
|
||||||
|
case XK_Break:
|
||||||
/* Send Break sequence E0 46 E0 C6 */
|
/* Send Break sequence E0 46 E0 C6 */
|
||||||
if (pressed)
|
if (pressed)
|
||||||
{
|
{
|
||||||
@ -261,10 +261,10 @@ handle_special_keys(uint32 keysym, unsigned int state, uint32 ev_time, BOOL pres
|
|||||||
rdp_send_scancode(ev_time, RDP_KEYPRESS,
|
rdp_send_scancode(ev_time, RDP_KEYPRESS,
|
||||||
(SCANCODE_EXTENDED | 0xc6));
|
(SCANCODE_EXTENDED | 0xc6));
|
||||||
}
|
}
|
||||||
/* No break sequence */
|
/* No release sequence */
|
||||||
}
|
return True;
|
||||||
else /* XK_Pause */
|
|
||||||
{
|
case XK_Pause:
|
||||||
/* According to MS Keyboard Scan Code
|
/* According to MS Keyboard Scan Code
|
||||||
Specification, pressing Pause should result
|
Specification, pressing Pause should result
|
||||||
in E1 1D 45 E1 9D C5. I'm not exactly sure
|
in E1 1D 45 E1 9D C5. I'm not exactly sure
|
||||||
@ -294,7 +294,6 @@ handle_special_keys(uint32 keysym, unsigned int state, uint32 ev_time, BOOL pres
|
|||||||
rdp_send_input(ev_time, RDP_INPUT_SCANCODE, RDP_KEYRELEASE,
|
rdp_send_input(ev_time, RDP_INPUT_SCANCODE, RDP_KEYRELEASE,
|
||||||
0x1d, 0);
|
0x1d, 0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return True;
|
return True;
|
||||||
|
|
||||||
case XK_Meta_L: /* Windows keys */
|
case XK_Meta_L: /* Windows keys */
|
||||||
|
Loading…
Reference in New Issue
Block a user