Skip to content

Commit 04f6abc

Browse files
committed
1 parent 29abc90 commit 04f6abc

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

src/qml/value-editor/ValueTabs.qml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -386,15 +386,19 @@ Repeater {
386386
Layout.minimumHeight: 100
387387

388388
ScrollView {
389+
id: tableScrollView
389390
anchors.fill: parent
390391

391392
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
392-
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
393+
ScrollBar.vertical.policy: ScrollBar.AlwaysOn
394+
393395

394396
TableView {
395397
id: table
396398
objectName: "rdm_value_tab_table"
397399

400+
focus: true
401+
398402
width: parent.width
399403
onWidthChanged: forceLayout()
400404
clip: true
@@ -426,7 +430,10 @@ Repeater {
426430
implicitHeight: 30
427431
text: Number(row) + 1
428432
selected: table.currentRow === row
429-
onClicked: table.currentRow = row
433+
onClicked: {
434+
table.currentRow = row
435+
table.forceActiveFocus()
436+
}
430437
}
431438
}
432439

@@ -439,7 +446,10 @@ Repeater {
439446
implicitHeight: 30
440447
text: renderText(display)
441448
selected: table.currentRow === row
442-
onClicked: table.currentRow = row
449+
onClicked: {
450+
table.currentRow = row
451+
table.forceActiveFocus()
452+
}
443453
}
444454
}
445455

@@ -452,7 +462,10 @@ Repeater {
452462
implicitHeight: 30
453463

454464
selected: table.currentRow === row
455-
onClicked: table.currentRow = row
465+
onClicked: {
466+
table.currentRow = row
467+
table.forceActiveFocus()
468+
}
456469

457470
text: {
458471
if (display === "" || !isMultiRow) {
@@ -575,7 +588,7 @@ Repeater {
575588
valueEditor.loadRowValue(currentRow)
576589
}
577590
}
578-
}
591+
}
579592
}
580593
}
581594
}

0 commit comments

Comments
 (0)