mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Use tab key to switch to dialog controls and set default focus to input
This commit is contained in:
parent
1e718b78c7
commit
53c535962f
|
|
@ -67,6 +67,8 @@ NonModalMessageDialog::NonModalMessageDialog(const QString &message, Type type,
|
|||
}
|
||||
case Type::INPUT: {
|
||||
_inputEdit = new ResizingPlainTextEdit(this);
|
||||
_inputEdit->setTabChangesFocus(true);
|
||||
_inputEdit->setFocus();
|
||||
connect(_inputEdit, &ResizingPlainTextEdit::textChanged, this,
|
||||
&NonModalMessageDialog::InputChanged);
|
||||
layout->addWidget(_inputEdit);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user