InputPanel: intercepting Enter key
Solved
QML and Qt Quick
-
I thought I'd looked thoroughly before asking this, but...after posting, I found the answer:
Dialog { property string inputText: "" signal okPressed(string newTextField) TextField { text: inputText EnterKeyAction.enabled: true Keys.onReleased: (event) => { if (event.key === Qt.Key_Return) okPressed(inputText) } ...
-