VirtualBox

Changeset 90909 in vbox


Ignore:
Timestamp:
Aug 26, 2021 12:21:08 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146545
Message:

FE/Qt: Showing the vm search widget only when an alpha-numerical key is pressed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserHandlerKeyboard.cpp

    r84610 r90909  
    305305        default:
    306306        {
    307             /* Start lookup: */
     307            /* Start lookup only for non-empty and alphanumerical strings: */
    308308            const QString strText = pEvent->text();
    309             if (!strText.isEmpty())
     309            if (!strText.isEmpty() && !strText.contains(QRegExp("[^A-Za-z0-9]", Qt::CaseInsensitive)))
    310310                model()->lookFor(strText);
    311311            break;
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