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
d5a21e16
Commit
d5a21e16
authored
Jul 14, 2015
by
Don Gagne
Browse files
Merge pull request #1717 from DonLakeFlyer/ParamEditKeys
Parameter editor keys
parents
ae8ea3bf
c7dd080e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/QmlControls/ParameterEditorDialog.qml
View file @
d5a21e16
...
...
@@ -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
}
...
...
src/QmlControls/QGCTextField.qml
View file @
d5a21e16
...
...
@@ -60,4 +60,10 @@ TextField {
padding.right
:
control
.
showUnits
?
unitsLabelWidthGenerator
.
width
:
control
.
__contentHeight
/
3
}
onActiveFocusChanged
:
{
if
(
activeFocus
)
{
selectAll
()
}
}
}
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