mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-22 12:45:41 +01:00
Merge pull request #6339 from Morph1984/swkbd-queuedconnection
applets/swkbd: Make use of QueuedConnection in returnPressed signal
This commit is contained in:
commit
3394f24728
@ -720,21 +720,9 @@ void QtSoftwareKeyboardDialog::SetTextDrawType() {
|
|||||||
ui->line_edit_osk->setFocus();
|
ui->line_edit_osk->setFocus();
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(ui->line_edit_osk, &QLineEdit::returnPressed, [this] {
|
connect(
|
||||||
switch (bottom_osk_index) {
|
ui->line_edit_osk, &QLineEdit::returnPressed, this,
|
||||||
case BottomOSKIndex::LowerCase:
|
[this] { TranslateButtonPress(HIDButton::Plus); }, Qt::QueuedConnection);
|
||||||
ui->button_ok->click();
|
|
||||||
break;
|
|
||||||
case BottomOSKIndex::UpperCase:
|
|
||||||
ui->button_ok_shift->click();
|
|
||||||
break;
|
|
||||||
case BottomOSKIndex::NumberPad:
|
|
||||||
ui->button_ok_num->click();
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
ui->line_edit_osk->setPlaceholderText(
|
ui->line_edit_osk->setPlaceholderText(
|
||||||
QString::fromStdU16String(initialize_parameters.guide_text));
|
QString::fromStdU16String(initialize_parameters.guide_text));
|
||||||
|
Loading…
Reference in New Issue
Block a user