[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] master fc0d6ae: * graph/win32/grwin32.c(syskey_transla
From: |
Werner LEMBERG |
Subject: |
[freetype2-demos] master fc0d6ae: * graph/win32/grwin32.c(syskey_translators): Fix F10 key (#50585). |
Date: |
Mon, 20 Mar 2017 00:44:58 -0400 (EDT) |
branch: master
commit fc0d6aec61b2e23b0af248cba51ff5be46551480
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>
* graph/win32/grwin32.c(syskey_translators): Fix F10 key (#50585).
`F10' does not work as advertised in the demos because the
message-handling code expects it to arrive as a `normal' key but
Windows sends it as a `system' key (because it is reserved for
activating the menu bar, per the IBM Common User Access standard).
Fix this by adding `F10' to the ‛syskey_translators’ table.
(We also remove the existing handling of `F1' as a `system' key,
because this does not appear to be necessary. `F1' is sent as a
`normal' key and is correctly handled by the ‛key_translators’
table.)
---
ChangeLog | 16 ++++++++++++++++
graph/win32/grwin32.c | 2 +-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 6fdaa79..2e41637 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2017-03-20 Brian Nixon <address@hidden>
+
+ * graph/win32/grwin32.c(syskey_translators): Fix F10 key (#50585).
+
+ `F10' does not work as advertised in the demos because the
+ message-handling code expects it to arrive as a `normal' key but
+ Windows sends it as a `system' key (because it is reserved for
+ activating the menu bar, per the IBM Common User Access standard).
+
+ Fix this by adding `F10' to the ‛syskey_translators’ table.
+
+ (We also remove the existing handling of `F1' as a `system' key,
+ because this does not appear to be necessary. `F1' is sent as a
+ `normal' key and is correctly handled by the ‛key_translators’
+ table.)
+
2017-03-19 Alexei Podtelezhnikov <address@hidden>
* src/ftbench.c (main, usage): Add optional LCD filtering.
diff --git a/graph/win32/grwin32.c b/graph/win32/grwin32.c
index 664b6c7..039d16c 100644
--- a/graph/win32/grwin32.c
+++ b/graph/win32/grwin32.c
@@ -104,7 +104,7 @@
static
Translator syskey_translators[] =
{
- { VK_F1, grKeyF1 }
+ { VK_F10, grKeyF10 }
};
static ATOM ourAtom;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] master fc0d6ae: * graph/win32/grwin32.c(syskey_translators): Fix F10 key (#50585).,
Werner LEMBERG <=