diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2021-09-16 16:57:45 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2021-09-16 20:34:28 +0200 |
| commit | 17a7e0108b0a2b4fbd8cb7c1e5d6e269505092e6 (patch) | |
| tree | 0636939fd1eb52bb9453631352c3739a25795160 /Events.qml | |
| parent | b5ae104bcddcc6a6a9cf73eab47bb43fe3a6ad14 (diff) | |
Fix tab navigation
Diffstat (limited to 'Events.qml')
| -rw-r--r-- | Events.qml | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -15,7 +15,6 @@ ListView { signal selected(var event) clip: true - focus: true highlightMoveDuration: 0 highlightResizeDuration: 0 @@ -46,10 +45,6 @@ ListView { editing = false model.remove(currentIndex) break - case Qt.Key_Tab: - case Qt.Key_Backtab: - // swallow tabs so we don’t lose focus when editing - break default: return } @@ -94,8 +89,8 @@ ListView { model.values = values } - // Try passing key to each field input in order. If none can - // handle it, pass it to control. + // Pass the key to parent first to check if Video handles it. + // If not, try passing it to each field input when editing. Keys.forwardTo: Array.prototype.concat(control, editing ? inputs.items : []) onClicked: { |
