@@ -386,15 +386,19 @@ Repeater {
386
386
Layout .minimumHeight : 100
387
387
388
388
ScrollView {
389
+ id: tableScrollView
389
390
anchors .fill : parent
390
391
391
392
ScrollBar .horizontal .policy : ScrollBar .AlwaysOff
392
- ScrollBar .vertical .policy : ScrollBar .AlwaysOn
393
+ ScrollBar .vertical .policy : ScrollBar .AlwaysOn
394
+
393
395
394
396
TableView {
395
397
id: table
396
398
objectName: " rdm_value_tab_table"
397
399
400
+ focus: true
401
+
398
402
width: parent .width
399
403
onWidthChanged: forceLayout ()
400
404
clip: true
@@ -426,7 +430,10 @@ Repeater {
426
430
implicitHeight: 30
427
431
text: Number (row) + 1
428
432
selected: table .currentRow === row
429
- onClicked: table .currentRow = row
433
+ onClicked: {
434
+ table .currentRow = row
435
+ table .forceActiveFocus ()
436
+ }
430
437
}
431
438
}
432
439
@@ -439,7 +446,10 @@ Repeater {
439
446
implicitHeight: 30
440
447
text: renderText (display)
441
448
selected: table .currentRow === row
442
- onClicked: table .currentRow = row
449
+ onClicked: {
450
+ table .currentRow = row
451
+ table .forceActiveFocus ()
452
+ }
443
453
}
444
454
}
445
455
@@ -452,7 +462,10 @@ Repeater {
452
462
implicitHeight: 30
453
463
454
464
selected: table .currentRow === row
455
- onClicked: table .currentRow = row
465
+ onClicked: {
466
+ table .currentRow = row
467
+ table .forceActiveFocus ()
468
+ }
456
469
457
470
text: {
458
471
if (display === " " || ! isMultiRow) {
@@ -575,7 +588,7 @@ Repeater {
575
588
valueEditor .loadRowValue (currentRow)
576
589
}
577
590
}
578
- }
591
+ }
579
592
}
580
593
}
581
594
}
0 commit comments