Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt4 External keyboard handling issues On wince platform
Qt 6.11 is out! See what's new in the release blog

Qt4 External keyboard handling issues On wince platform

Scheduled Pinned Locked Moved Solved Mobile and Embedded
1 Posts 1 Posters 195 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CraigTaoC Offline
    CraigTaoC Offline
    CraigTao
    wrote on last edited by
    #1

    The key s of the external keyboard is treated as a hot key, and the function is the same as backspace.

    the source file: C:\Qt\qt-everywhere-opensource-src-4.7.3\src\gui\kernel\qapplication_win.cpp

    code snippet:

    extern "C" LRESULT QT_WIN_CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
    {
         .....
    #if Q_OS_WINCE_WM
            case WM_HOTKEY:
                if(HIWORD(msg.lParam) == VK_TBACK) {
                    const bool hotKeyDown = !(LOWORD(msg.lParam) & MOD_KEYUP);
                    msg.lParam = 0x69 << 16;
                    msg.wParam = VK_BACK;
                    if (hotKeyDown) {
                        msg.message = WM_KEYDOWN;
                        qt_keymapper_private()->updateKeyMap(msg);
                    } else {
                        msg.message = WM_KEYUP;
                    }
                }
                // fall-through intended
    #endif 
        ....
    }
    

    Comment out the code segment and recompile the library to solve this problem

    I have sent a Technical Issue Report to qt official.
    Hope to get a feedback that can explain why it is implemented this way
    my Email: craigtao@hushmail.com

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved