mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-16 07:10:40 +00:00
Qt/Input: disable TabFocus while mapping buttons in order to map Tab key
This commit is contained in:
parent
dd4ccb059e
commit
2cd551a222
@ -278,6 +278,11 @@ void pad_settings_dialog::ReactivateButtons()
|
||||
m_button_id = button_ids::id_pad_begin;
|
||||
UpdateLabel();
|
||||
SwitchButtons(true);
|
||||
|
||||
for (auto but : m_padButtons->buttons())
|
||||
{
|
||||
but->setFocusPolicy(Qt::StrongFocus);
|
||||
}
|
||||
}
|
||||
|
||||
void pad_settings_dialog::RepaintPreviewLabel(QLabel* l, int dz, int w, int x, int y)
|
||||
@ -405,6 +410,11 @@ void pad_settings_dialog::OnPadButtonClicked(int id)
|
||||
break;
|
||||
}
|
||||
|
||||
for (auto but : m_padButtons->buttons())
|
||||
{
|
||||
but->setFocusPolicy(Qt::ClickFocus);
|
||||
}
|
||||
|
||||
m_button_id = id;
|
||||
m_padButtons->button(m_button_id)->setText(tr("[ Waiting %1 ]").arg(MAX_SECONDS));
|
||||
m_padButtons->button(m_button_id)->setPalette(QPalette(Qt::blue));
|
||||
|
Loading…
Reference in New Issue
Block a user