mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Remember and ignore hotkey combination before capturing
When capturing a new hotkey combination, we want to get only the delta of the keys and buttons being pressed during the capturing. ref T585
This commit is contained in:
committed by
Mat Sutcliffe
parent
c51a1b8c7b
commit
563a69e3f5
@@ -185,7 +185,17 @@ namespace BlackGui
|
||||
|
||||
void CSettingsHotkeyComponent::hotkeySlot(bool keyDown)
|
||||
{
|
||||
if (keyDown) { QMessageBox::information(this, "Test", "Hotkey test"); }
|
||||
if (keyDown)
|
||||
{
|
||||
QMessageBox* msgBox = new QMessageBox(this);
|
||||
msgBox->setAttribute(Qt::WA_DeleteOnClose);
|
||||
msgBox->setStandardButtons(QMessageBox::Ok);
|
||||
msgBox->setWindowTitle("Test");
|
||||
msgBox->setText("Hotkey test");
|
||||
msgBox->setIcon(QMessageBox::Information);
|
||||
msgBox->setModal(false);
|
||||
msgBox->open();
|
||||
}
|
||||
}
|
||||
|
||||
bool CConfigHotkeyWizardPage::validatePage()
|
||||
|
||||
Reference in New Issue
Block a user