diff options
| author | rating89us <45968869+rating89us@users.noreply.github.com> | 2021-08-23 18:09:22 +0200 |
|---|---|---|
| committer | selsta <selsta@sent.at> | 2023-02-12 23:25:49 +0100 |
| commit | 198dfb338cb26177763b5fff835a3740b0a4f0c5 (patch) | |
| tree | 8e5608e824fde049ef9c0a5a37fd44c87dc6611a /components/LineEdit.qml | |
| parent | b7ba9437d8cca6df4ecff7f5ae38a53cac5e26b2 (diff) | |
| download | monzero-gui-198dfb338cb26177763b5fff835a3740b0a4f0c5.tar.gz monzero-gui-198dfb338cb26177763b5fff835a3740b0a4f0c5.tar.xz monzero-gui-198dfb338cb26177763b5fff835a3740b0a4f0c5.zip | |
wizard: redesign seed page
- move mnemonic seed
- restore height into a separate page
- pdf template
- seed verification
- responsive UI
- accessibility
Diffstat (limited to 'components/LineEdit.qml')
| -rw-r--r-- | components/LineEdit.qml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/components/LineEdit.qml b/components/LineEdit.qml index 03a00b97..ae2f0114 100644 --- a/components/LineEdit.qml +++ b/components/LineEdit.qml @@ -40,6 +40,8 @@ ColumnLayout { default property alias content: inlineButtons.children property alias input: input + property bool inputHasFocus: input.activeFocus + property bool tabNavigationEnabled: true property alias text: input.text property int inputPaddingLeft: 10 @@ -109,6 +111,8 @@ ColumnLayout { signal editingFinished(); signal accepted(); signal textUpdated(); + signal backtabPressed(); + signal tabPressed(); onActiveFocusChanged: activeFocus && input.forceActiveFocus() onTextUpdated: { @@ -212,8 +216,18 @@ ColumnLayout { MoneroComponents.Input { id: input - KeyNavigation.backtab: item.KeyNavigation.backtab - KeyNavigation.tab: item.KeyNavigation.tab + Keys.onBacktabPressed: { + item.backtabPressed(); + if (item.KeyNavigation.backtab) { + item.KeyNavigation.backtab.forceActiveFocus() + } + } + Keys.onTabPressed: { + item.tabPressed(); + if (item.KeyNavigation.tab) { + item.KeyNavigation.tab.forceActiveFocus() + } + } Layout.fillWidth: true Layout.preferredHeight: inputHeight |
