diff options
author | fvogel <fvogelnew1@free.fr> | 2017-01-28 15:41:45 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-01-28 15:41:45 (GMT) |
commit | c9b7bbbe5acb22807ee399633d9ec63b37179211 (patch) | |
tree | 4fa4b2c35da61a0aedf3456cdf41b83fd1851a31 /win | |
parent | 624e0e19c674b11f1669dd060fe8b9e8dae38aab (diff) | |
download | tk-c9b7bbbe5acb22807ee399633d9ec63b37179211.zip tk-c9b7bbbe5acb22807ee399633d9ec63b37179211.tar.gz tk-c9b7bbbe5acb22807ee399633d9ec63b37179211.tar.bz2 |
Proposed fix for [499526180d]: Add support for windows multimedia virtual keys. Patch by ralfixx
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinKey.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/win/tkWinKey.c b/win/tkWinKey.c index 1ebf312..357a804 100644 --- a/win/tkWinKey.c +++ b/win/tkWinKey.c @@ -21,7 +21,8 @@ * like a worthwhile improvement to use the table. */ -#define MAX_KEYCODE 145 /* VK_SCROLL is the last entry in our table below */ +#define MAX_KEYCODE 179 /* VK_MEDIA_PLAY_PAUSE is the last entry in our table below */ +/* cf. https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx */ static const KeySym keymap[] = { NoSymbol, NoSymbol, NoSymbol, XK_Cancel, NoSymbol, @@ -53,7 +54,13 @@ static const KeySym keymap[] = { XK_F19, XK_F20, XK_F21, XK_F22, XK_F23, XK_F24, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, XK_Num_Lock, - XK_Scroll_Lock + XK_Scroll_Lock, NoSymbol, NoSymbol, NoSymbol, NoSymbol, + NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, /*150 0x96*/ + NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, /*155 0x9b*/ + NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, /*160 0xa0*/ + NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, /*165 0xa5*/ + NoSymbol, NoSymbol, NoSymbol, XK_XF86AudioMute, XK_XF86AudioLowerVolume, /*170 0xaa*/ + XK_XF86AudioRaiseVolume, XK_XF86AudioNext, XK_XF86AudioPrev, XK_XF86AudioStop, XK_XF86AudioPlay /*175 0xaf*/ }; /* |