mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-10 05:17:24 +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
|
||||
onAccepted: {
|
||||
setTextFieldAttribute(text)
|
||||
parameterLabel.forceActiveFocus()
|
||||
}
|
||||
Keys.onPressed: (event)=> {
|
||||
if ((event.key == Qt.Key_Escape)) {
|
||||
event.accepted = true
|
||||
parameterLabel.forceActiveFocus()
|
||||
}
|
||||
}
|
||||
Component.onDestruction: {
|
||||
if (activeFocus)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue