mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(ntextinput): use onTextChanged for autosave, onEditingFinished instead of onAccepted
- Switch most settings from onEditingFinished to onTextChanged so changes save on every keystroke - Replace onAccepted with onEditingFinished (Enter + blur) for search, pager, wifi, bluetooth - Keep onEditingFinished for pager, wallhaven, path inputs, and validation fields
This commit is contained in:
@@ -29,10 +29,8 @@ RowLayout {
|
||||
description: root.description
|
||||
placeholderText: root.placeholderText
|
||||
text: root.text
|
||||
onEditingFinished: {
|
||||
root.text = text;
|
||||
root.editingFinished();
|
||||
}
|
||||
onTextChanged: root.text = text
|
||||
onEditingFinished: root.editingFinished()
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user