VirtualBox

Ignore:
Timestamp:
Jan 21, 2013 2:54:49 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83257
Message:

FE/Qt: 6591: Take-screenshot dialog should have accessible keyboard input (win host).

File:
1 edited

Legend:

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

    r43919 r44323  
    10221022        strFilter = filters.first();
    10231023    }
     1024
     1025#ifdef Q_WS_WIN
     1026    /* Due to Qt bug, modal QFileDialog appeared above the active machine-window
     1027     * does not retreive the focus from the currently focused machine-view,
     1028     * as the result guest keyboard remains captured, so we should
     1029     * clear the focus from this machine-view initially: */
     1030    if (activeMachineWindow())
     1031        activeMachineWindow()->machineView()->clearFocus();
     1032#endif /* Q_WS_WIN */
     1033
    10241034    /* Request the filename from the user. */
    10251035    const CMachine &machine = session().GetMachine();
     
    10351045                                                        true /* resolve symlinks */,
    10361046                                                        true /* confirm overwrite */);
     1047
     1048#ifdef Q_WS_WIN
     1049    /* Due to Qt bug, modal QFileDialog appeared above the active machine-window
     1050     * does not retreive the focus from the currently focused machine-view,
     1051     * as the result guest keyboard remains captured, so we already
     1052     * cleared the focus from this machine-view and should return
     1053     * that focus finally: */
     1054    if (activeMachineWindow())
     1055        activeMachineWindow()->machineView()->setFocus();
     1056#endif /* Q_WS_WIN */
     1057
    10371058    /* Do the screenshot. */
    10381059    if (!strFilename.isEmpty())
Note: See TracChangeset for help on using the changeset viewer.

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