SelectAccelerator: Focus the KeyField after any modification is done

E.g. if a modifier checkbox is pressed, we want the keyboard focus back
to the KeyField (which is the only interesting field)
This commit is contained in:
David Capello 2014-11-25 20:29:26 -03:00
parent 8514f02ee4
commit 83ee0bf45d

View File

@ -127,6 +127,7 @@ void SelectAccelerator::onModifierChange(KeyModifiers modifier, CheckBox* checkb
m_accel = Accelerator(modifiers, scancode, unicodeChar); m_accel = Accelerator(modifiers, scancode, unicodeChar);
m_keyField->setAccel(m_accel); m_keyField->setAccel(m_accel);
m_keyField->requestFocus();
updateAssignedTo(); updateAssignedTo();
} }