VirtualBox

儲存庫 vbox 的更動 11995


忽略:
時間撮記:
2008-9-2 下午03:58:23 (16 年 以前)
作者:
vboxsync
訊息:

Fe/Qt4: Fix for HOST key editor of Global Settings bug under windows.

位置:
trunk/src/VBox/Frontends/VirtualBox4
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Frontends/VirtualBox4/include/QIHotKeyEdit.h

    r9820 r11995  
    7777
    7878#if defined (Q_WS_WIN32)
    79     bool winEvent (MSG *msg);
     79    bool winEvent (MSG *aMsg, long *aResult);
    8080#elif defined (Q_WS_PM)
    8181    bool pmEvent (QMSG *aMsg);
  • trunk/src/VBox/Frontends/VirtualBox4/src/QIHotKeyEdit.cpp

    r11204 r11995  
    533533#if defined (Q_WS_WIN32)
    534534
    535 bool QIHotKeyEdit::winEvent (MSG *msg)
    536 {
    537     if (!(msg->message == WM_KEYDOWN || msg->message == WM_SYSKEYDOWN ||
    538           msg->message == WM_KEYUP || msg->message == WM_SYSKEYUP ||
    539           msg->message == WM_CHAR || msg->message == WM_SYSCHAR ||
    540           msg->message == WM_DEADCHAR || msg->message == WM_SYSDEADCHAR ||
    541           msg->message == WM_CONTEXTMENU))
     535bool QIHotKeyEdit::winEvent (MSG *aMsg, long* /* aResult */)
     536{
     537    if (!(aMsg->message == WM_KEYDOWN || aMsg->message == WM_SYSKEYDOWN ||
     538          aMsg->message == WM_KEYUP || aMsg->message == WM_SYSKEYUP ||
     539          aMsg->message == WM_CHAR || aMsg->message == WM_SYSCHAR ||
     540          aMsg->message == WM_DEADCHAR || aMsg->message == WM_SYSDEADCHAR ||
     541          aMsg->message == WM_CONTEXTMENU))
    542542        return false;
    543543
    544544    /* ignore if not a valid hot key */
    545     if (!isValidKey (msg->wParam))
     545    if (!isValidKey (aMsg->wParam))
    546546        return false;
    547547
     
    549549    LogFlow (("%WM_%04X: vk=%04X rep=%05d scan=%02X ext=%01d"
    550550              "rzv=%01X ctx=%01d prev=%01d tran=%01d\n",
    551               msg->message, msg->wParam,
    552               (msg->lParam & 0xFFFF),
    553               ((msg->lParam >> 16) & 0xFF),
    554               ((msg->lParam >> 24) & 0x1),
    555               ((msg->lParam >> 25) & 0xF),
    556               ((msg->lParam >> 29) & 0x1),
    557               ((msg->lParam >> 30) & 0x1),
    558               ((msg->lParam >> 31) & 0x1)));
    559 #endif
    560 
    561     if (msg->message == WM_KEYDOWN || msg->message == WM_SYSKEYDOWN)
     551              aMsg->message, aMsg->wParam,
     552              (aMsg->lParam & 0xFFFF),
     553              ((aMsg->lParam >> 16) & 0xFF),
     554              ((aMsg->lParam >> 24) & 0x1),
     555              ((aMsg->lParam >> 25) & 0xF),
     556              ((aMsg->lParam >> 29) & 0x1),
     557              ((aMsg->lParam >> 30) & 0x1),
     558              ((aMsg->lParam >> 31) & 0x1)));
     559#endif
     560
     561    if (aMsg->message == WM_KEYDOWN || aMsg->message == WM_SYSKEYDOWN)
    562562    {
    563563        /* determine platform-dependent key */
    564         mKeyVal = qi_distinguish_modifier_vkey (msg->wParam);
     564        mKeyVal = qi_distinguish_modifier_vkey (aMsg->wParam);
    565565        /* determine symbolic name */
    566566        TCHAR *str = new TCHAR [256];
    567         if (::GetKeyNameText (msg->lParam, str, 256))
     567        if (::GetKeyNameText (aMsg->lParam, str, 256))
    568568        {
    569569            mSymbName = QString::fromUtf16 (str);
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette