summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-05-19 04:21:46 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-05-22 09:28:54 +0200
commitecacb002beb39a2d68bf0096c31b2a62ad505e04 (patch)
tree8faf67395411a9728203053fbb3d22e8331dd07e /src
parentMerge pull request #6248 from A-w-x/intelmesa (diff)
downloadyuzu-ecacb002beb39a2d68bf0096c31b2a62ad505e04.tar
yuzu-ecacb002beb39a2d68bf0096c31b2a62ad505e04.tar.gz
yuzu-ecacb002beb39a2d68bf0096c31b2a62ad505e04.tar.bz2
yuzu-ecacb002beb39a2d68bf0096c31b2a62ad505e04.tar.lz
yuzu-ecacb002beb39a2d68bf0096c31b2a62ad505e04.tar.xz
yuzu-ecacb002beb39a2d68bf0096c31b2a62ad505e04.tar.zst
yuzu-ecacb002beb39a2d68bf0096c31b2a62ad505e04.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/applets/software_keyboard.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/yuzu/applets/software_keyboard.cpp b/src/yuzu/applets/software_keyboard.cpp
index b0f764994..a9a095d58 100644
--- a/src/yuzu/applets/software_keyboard.cpp
+++ b/src/yuzu/applets/software_keyboard.cpp
@@ -720,21 +720,9 @@ void QtSoftwareKeyboardDialog::SetTextDrawType() {
ui->line_edit_osk->setFocus();
});
- connect(ui->line_edit_osk, &QLineEdit::returnPressed, [this] {
- switch (bottom_osk_index) {
- case BottomOSKIndex::LowerCase:
- 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;
- }
- });
+ connect(
+ ui->line_edit_osk, &QLineEdit::returnPressed, this,
+ [this] { TranslateButtonPress(HIDButton::Plus); }, Qt::QueuedConnection);
ui->line_edit_osk->setPlaceholderText(
QString::fromStdU16String(initialize_parameters.guide_text));