summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-03-26 15:14:51 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-03-26 15:14:51 (GMT)
commit9699b942e96cabd5fe1e5047d65b0d1e856c140c (patch)
tree7022d1c9d963bd8e0dc27e417140f402ff66971a /win
parent66e41a71e3b7254f83641c7a1d512bfa94c45d40 (diff)
parent2fee50e1e568b4542d831989ccac2946a744da3b (diff)
downloadtk-9699b942e96cabd5fe1e5047d65b0d1e856c140c.zip
tk-9699b942e96cabd5fe1e5047d65b0d1e856c140c.tar.gz
tk-9699b942e96cabd5fe1e5047d65b0d1e856c140c.tar.bz2
Merged tip-464 following positive vote by the TCT.
Diffstat (limited to 'win')
-rw-r--r--win/tkWinKey.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/win/tkWinKey.c b/win/tkWinKey.c
index daf2ecc..77b53cc 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 KeySym keymap[] = {
NoSymbol, NoSymbol, NoSymbol, XK_Cancel, NoSymbol,
@@ -53,7 +54,13 @@ static 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*/
};
/*