mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 17:09:08 +08:00
Simpify Readonly textarea
CURA-8685
This commit is contained in:
parent
da96cb833c
commit
6be75c75f8
@ -21,7 +21,6 @@ ScrollView
|
||||
id: textArea
|
||||
|
||||
enabled: !base.readOnly
|
||||
opacity: base.readOnly ? 0.5 : 1.0
|
||||
selectByMouse: true
|
||||
|
||||
background: Rectangle
|
||||
@ -33,15 +32,9 @@ ScrollView
|
||||
color: UM.Theme.getColor("text")
|
||||
font: UM.Theme.getFont("default")
|
||||
|
||||
Keys.onReturnPressed:
|
||||
{
|
||||
base.editingFinished()
|
||||
}
|
||||
Keys.onReturnPressed: base.editingFinished()
|
||||
|
||||
Keys.onEnterPressed:
|
||||
{
|
||||
base.editingFinished()
|
||||
}
|
||||
Keys.onEnterPressed: base.editingFinished()
|
||||
|
||||
onActiveFocusChanged:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user