VirtualBox

Changeset 35752 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 28, 2011 10:57:53 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69709
Message:

FE/Qt4: make Host+Home configurable

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineShortcuts.cpp

    r35634 r35752  
    6161    m_Shortcuts[UpdateShortcut]                = UIKeySequence("Update");
    6262    m_Shortcuts[AboutShortcut]                 = UIKeySequence("About");
     63    m_Shortcuts[PopupMenuShortcut]             = UIKeySequence("PopupMenu",             "Home");
    6364    /* Overwrite the key sequences with the one in extra data. */
    6465    loadExtraData(VBoxDefs::GUI_Input_MachineShortcuts, EndShortcutType);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineShortcuts.h

    r35634 r35752  
    5959        UpdateShortcut,
    6060        AboutShortcut,
    61         EndShortcutType,
     61        PopupMenuShortcut,
     62        EndShortcutType
    6263    };
    6364
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIKeyboardHandlerFullscreen.cpp

    r30675 r35752  
    2626#include "UIKeyboardHandlerFullscreen.h"
    2727#include "UIMachineWindow.h"
     28#include "UIMachineShortcuts.h"
    2829
    2930/* Fullscreen keyboard-handler constructor: */
     
    5556                QKeyEvent *pKeyEvent = static_cast<QKeyEvent*>(pEvent);
    5657                /* Process Host+Home for menu popup: */
    57                 if (isHostKeyPressed() && pKeyEvent->key() == Qt::Key_Home)
     58                if (isHostKeyPressed() && pKeyEvent->key() == gMS->keySequence(UIMachineShortcuts::PopupMenuShortcut))
    5859                {
    5960                    /* Post request to show popup-menu: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIKeyboardHandlerNormal.cpp

    r30675 r35752  
    2626#include "UIKeyboardHandlerNormal.h"
    2727#include "UIMachineWindow.h"
     28#include "UIMachineShortcuts.h"
    2829
    2930/* Fullscreen keyboard-handler constructor: */
     
    5859                QKeyEvent *pKeyEvent = static_cast<QKeyEvent*>(pEvent);
    5960                /* Process Host+Home as menu-bar activator: */
    60                 if (isHostKeyPressed() && pKeyEvent->key() == Qt::Key_Home)
     61                if (isHostKeyPressed() && pKeyEvent->key() == gMS->keySequence(UIMachineShortcuts::PopupMenuShortcut))
    6162                {
    6263                    /* Trying to get menu-bar: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIKeyboardHandlerScale.cpp

    r30848 r35752  
    2626#include "UIKeyboardHandlerScale.h"
    2727#include "UIMachineWindow.h"
     28#include "UIMachineShortcuts.h"
    2829
    2930/* Fullscreen keyboard-handler constructor: */
     
    5859                QKeyEvent *pKeyEvent = static_cast<QKeyEvent*>(pEvent);
    5960                /* Process Host+Home for menu popup: */
    60                 if (isHostKeyPressed() && pKeyEvent->key() == Qt::Key_Home)
     61                if (isHostKeyPressed() && pKeyEvent->key() == gMS->keySequence(UIMachineShortcuts::PopupMenuShortcut))
    6162                {
    6263                    /* Post request to show popup-menu: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIKeyboardHandlerSeamless.cpp

    r30675 r35752  
    2626#include "UIKeyboardHandlerSeamless.h"
    2727#include "UIMachineWindow.h"
     28#include "UIMachineShortcuts.h"
    2829
    2930/* Fullscreen keyboard-handler constructor: */
     
    5556                QKeyEvent *pKeyEvent = static_cast<QKeyEvent*>(pEvent);
    5657                /* Process Host+Home for menu popup: */
    57                 if (isHostKeyPressed() && pKeyEvent->key() == Qt::Key_Home)
     58                if (isHostKeyPressed() && pKeyEvent->key() == gMS->keySequence(UIMachineShortcuts::PopupMenuShortcut))
    5859                {
    5960                    /* Post request to show popup-menu: */
Note: See TracChangeset for help on using the changeset viewer.

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