Grab keyboard in hotkey input dialog
This commit is contained in:
parent
ec528afe04
commit
0085c7d98f
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user