Grab keyboard in hotkey input dialog

This commit is contained in:
ArsenArsen 2017-11-23 14:08:17 +01:00
parent ec528afe04
commit 0085c7d98f
No known key found for this signature in database
GPG Key ID: 683D2F43B0CA4BD2
1 changed files with 2 additions and 0 deletions

View File

@ -35,4 +35,6 @@ void HotkeyInputDialog::keyPressEvent(QKeyEvent *e) {
void HotkeyInputDialog::on_recordButton_clicked() {
recording = !recording;
ui->recordButton->setText(recording ? tr("Stop recording") : tr("Record"));
if (recording) grabKeyboard();
else releaseKeyboard();
}