Skip to content

Commit 889d725

Browse files
committed
grid.Container / View: add support for the keys PageDown, PageUp, End, Home to navigate #6233
1 parent c452fe2 commit 889d725

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

resources/scss/src/grid/View.scss

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
overflow-y : auto;
66
position : relative;
77

8+
&:focus {
9+
outline: none;
10+
}
11+
812
.neo-grid-scrollbar {
913
height : 1px;
1014
position : absolute;

src/grid/View.mjs

+2-4
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class GridView extends Component {
121121
* @member {Object} _vdom
122122
*/
123123
_vdom:
124-
{cn: [
124+
{tabIndex: '-1', cn: [
125125
{cn: []},
126126
{cls: 'neo-grid-scrollbar'}
127127
]}
@@ -428,8 +428,7 @@ class GridView extends Component {
428428
id : cellId,
429429
cls : cellCls,
430430
role : 'gridcell',
431-
style : rendererOutput.style || {},
432-
tabIndex : '-1'
431+
style : rendererOutput.style || {}
433432
};
434433

435434
if (column.width) {
@@ -491,7 +490,6 @@ class GridView extends Component {
491490
cls : trCls,
492491
cn : [],
493492
role : 'row',
494-
tabIndex : '-1',
495493

496494
style: {
497495
height : me.rowHeight + 'px',

0 commit comments

Comments
 (0)