diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-10-14 09:29:18 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-10-14 09:33:16 (GMT) |
commit | ba321e277e392c276c1ff8b32f8fca7d26ed0fbe (patch) | |
tree | c082876b63858a7830d3509961365bb124ad4a5f /src | |
parent | 7d27d9732e1f528396b27022720d60d38fe9717a (diff) | |
download | Qt-ba321e277e392c276c1ff8b32f8fca7d26ed0fbe.zip Qt-ba321e277e392c276c1ff8b32f8fca7d26ed0fbe.tar.gz Qt-ba321e277e392c276c1ff8b32f8fca7d26ed0fbe.tar.bz2 |
Function keys
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp b/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp index c2ad094..bec0b60 100644 --- a/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp +++ b/src/plugins/graphicssystems/testlite/qwindowsurface_testlite.cpp @@ -475,6 +475,9 @@ static const unsigned int keyTbl[] = { static int lookupCode(unsigned int xkeycode) { + if (xkeycode >= XK_F1 && xkeycode <= XK_F35) + return Qt::Key_F1 + (int(xkeycode) - XK_F1); + const unsigned int *p = keyTbl; while (*p) { if (*p == xkeycode) |