Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
a476b66f
Commit
a476b66f
authored
Jul 14, 2015
by
Don Gagne
Browse files
Escape - Cancel, Enter - Save support
parent
ae8ea3bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QmlControls/ParameterEditorDialog.qml
View file @
a476b66f
...
...
@@ -59,6 +59,7 @@ QGCViewDialog {
validationError
.
text
=
fact
.
validate
(
validateValue
,
false
/* convertOnly */
)
forceSave
.
visible
=
true
}
valueField
.
forceActiveFocus
();
}
Column
{
...
...
@@ -82,6 +83,14 @@ QGCViewDialog {
QGCTextField
{
id
:
valueField
text
:
validate
?
validateValue
:
fact
.
valueString
onAccepted
:
accept
()
Keys.onReleased
:
{
if
(
event
.
key
==
Qt
.
Key_Escape
)
{
reject
()
}
}
}
QGCLabel
{
text
:
fact
.
name
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment