Skip to content

Commit

Permalink
grid.Container / View: add support for the keys PageDown, PageUp, End…
Browse files Browse the repository at this point in the history
…, Home to navigate #6233
  • Loading branch information
tobiu committed Jan 14, 2025
1 parent c452fe2 commit 889d725
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions resources/scss/src/grid/View.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
overflow-y : auto;
position : relative;

&:focus {
outline: none;
}

.neo-grid-scrollbar {
height : 1px;
position : absolute;
Expand Down
6 changes: 2 additions & 4 deletions src/grid/View.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class GridView extends Component {
* @member {Object} _vdom
*/
_vdom:
{cn: [
{tabIndex: '-1', cn: [
{cn: []},
{cls: 'neo-grid-scrollbar'}
]}
Expand Down Expand Up @@ -428,8 +428,7 @@ class GridView extends Component {
id : cellId,
cls : cellCls,
role : 'gridcell',
style : rendererOutput.style || {},
tabIndex : '-1'
style : rendererOutput.style || {}
};

if (column.width) {
Expand Down Expand Up @@ -491,7 +490,6 @@ class GridView extends Component {
cls : trCls,
cn : [],
role : 'row',
tabIndex : '-1',

style: {
height : me.rowHeight + 'px',
Expand Down

0 comments on commit 889d725

Please sign in to comment.