mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-24 11:51:04 +00:00
Fixup: Capture Tab for QLineEditKeyConfig, and don't enable Tab focus for it
This commit is contained in:
parent
7af2ea816f
commit
8cfb4b13f2
@ -27,3 +27,7 @@ void QLineEditKeyConfig::keyPressEvent(QKeyEvent* event) {
|
||||
|
||||
emit ValueChanged(button, event->key());
|
||||
}
|
||||
|
||||
bool QLineEditKeyConfig::focusNextPrevChild(bool next) {
|
||||
return false;
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ public:
|
||||
Settings::NativeInput::Values button;
|
||||
QLineEditKeyConfig(Settings::NativeInput::Values button, QWidget* parent = nullptr);
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
|
||||
bool focusNextPrevChild(bool next) override;
|
||||
signals:
|
||||
void ValueChanged(Settings::NativeInput::Values, int);
|
||||
};
|
||||
|
@ -21,6 +21,7 @@ GInputsDialog::GInputsDialog(QWidget* parent) : QDialog(parent) {
|
||||
// create the lineEdits
|
||||
for (int i = 0; i < Settings::NativeInput::NUM_INPUTS; ++i) {
|
||||
lineEdits[i] = new QLineEditKeyConfig(Settings::NativeInput::All[i]);
|
||||
lineEdits[i]->setFocusPolicy(Qt::ClickFocus);
|
||||
}
|
||||
|
||||
// put the lineEdits and their labels into a grid
|
||||
|
Loading…
Reference in New Issue
Block a user