nhn / tui.grid

πŸžπŸ”‘ The Powerful Component to Display and Edit Data. Experience the Ultimate Data Transformer!
http://ui.toast.com/tui-grid/
MIT License
2.42k stars 389 forks source link

feat: define move direction on enter #1966

Closed jajugoguma closed 1 year ago

jajugoguma commented 1 year ago

Please check if the PR fulfills these requirements

Description

The moveDirectionOnEnter option now allows you to determine the direction of focus movement when the Enter key is pressed. Possible move directions are nextCell, prevCell, up, and down.

nextCell

It is same behavior as when the Tab key is pressed.

nextCell

prevCell

It is same behavior as when the Shift-Tab key is pressed.

prevCell

up

It is similar behavior as when the Arrow up key is pressed. The difference is that it also acts while editing (finishes editing), and will automatically start editing if the cell to get focus is an editable cell.

up

down

It is similar behavior as when the Arrow down key is pressed. The difference is that it also acts while editing (finishes editing), and will automatically start editing if the cell to get focus is an editable cell.

down


Thank you for your contribution to TOAST UI product. πŸŽ‰ 😘 ✨