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:
Roland Rossgotterer
2019-04-11 10:08:58 +02:00
committed by Mat Sutcliffe
parent c51a1b8c7b
commit 563a69e3f5
5 changed files with 62 additions and 9 deletions

View File

@@ -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()