aboutsummaryrefslogtreecommitdiff
path: root/xorg-server
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-01-26 09:14:41 +0100
committermarha <marha@users.sourceforge.net>2012-01-26 09:14:41 +0100
commit5283d47a3bf49ffbf972465908f1e30aa6698509 (patch)
treea4a622df657e99df6af2e5bd5603b01af51ff073 /xorg-server
parent975bb0c5912cacce6484337cb6c0700590575179 (diff)
downloadvcxsrv-5283d47a3bf49ffbf972465908f1e30aa6698509.tar.gz
vcxsrv-5283d47a3bf49ffbf972465908f1e30aa6698509.tar.bz2
vcxsrv-5283d47a3bf49ffbf972465908f1e30aa6698509.zip
Handle the virtual key code generated by the Fn key on IBM Lenovo laptops
Diffstat (limited to 'xorg-server')
-rw-r--r--xorg-server/hw/xwin/winkeybd.h4
-rw-r--r--xorg-server/hw/xwin/winkeynames.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/xorg-server/hw/xwin/winkeybd.h b/xorg-server/hw/xwin/winkeybd.h
index 37cc66733..887ab7ad6 100644
--- a/xorg-server/hw/xwin/winkeybd.h
+++ b/xorg-server/hw/xwin/winkeybd.h
@@ -35,6 +35,8 @@
*/
#include "winkeynames.h"
+#define VK_FN 0xFF
+
#define WIN_KEYMAP_COLS 3
/* ASCII column, rows 33 through 40 are for Speech Recognition with
@@ -300,7 +302,7 @@ g_iKeyMap [] = {
/* 252 */ 0, 0, 0,
/* 253 */ 0, 0, 0,
/* 254 */ 0, 0, 0,
- /* 255 */ 0, 0, 0
+ /* 255 */ VK_FN, 0, KEY_Fn /* Most keyboards don't generate a scancode for Fn, but a few do... */
};
#endif /* WINKEYBD_H */
diff --git a/xorg-server/hw/xwin/winkeynames.h b/xorg-server/hw/xwin/winkeynames.h
index a6738330e..55842f1b8 100644
--- a/xorg-server/hw/xwin/winkeynames.h
+++ b/xorg-server/hw/xwin/winkeynames.h
@@ -144,7 +144,7 @@
#define KEY_KP_0 /* 0 Insert 0x52 */ 82
#define KEY_KP_Decimal /* . (Decimal) Delete 0x53 */ 83
#define KEY_SysReqest /* SysReqest 0x54 */ 84
- /* NOTUSED 0x55 */
+#define KEY_Fn /* Fn 0x55 */ 85
#define KEY_Less /* < (Less) >(Greater) 0x56 */ 86
#define KEY_F11 /* F11 0x57 */ 87
#define KEY_F12 /* F12 0x58 */ 88