mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 18:27:23 +02:00
[ui] GraphEditor: attribute now loses focus when Enter or Escape is pressed
This commit is contained in:
parent
49c0d0feea
commit
02ab2ef931
1 changed files with 7 additions and 0 deletions
|
@ -215,6 +215,13 @@ RowLayout {
|
||||||
property bool memoryActiveFocus: false
|
property bool memoryActiveFocus: false
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
setTextFieldAttribute(text)
|
setTextFieldAttribute(text)
|
||||||
|
parameterLabel.forceActiveFocus()
|
||||||
|
}
|
||||||
|
Keys.onPressed: (event)=> {
|
||||||
|
if ((event.key == Qt.Key_Escape)) {
|
||||||
|
event.accepted = true
|
||||||
|
parameterLabel.forceActiveFocus()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Component.onDestruction: {
|
Component.onDestruction: {
|
||||||
if (activeFocus)
|
if (activeFocus)
|
||||||
|
|
Loading…
Add table
Reference in a new issue