DataTable: NumpadEnter ignored during cell editing (and many other cases) #6023
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
KeyboardEvent.code
can take the value"Enter"
or"NumpadEnter"
when hitting the respective enter keys.KeyboardEvent.key
is"Enter"
in both cases. Ifcode
is used, both values should be checked; otherwise,key
should be used.There are many examples of incorrect handling of the enter key, such as:
primereact/components/lib/datatable/BodyCell.js
Line 364 in 6cd5730
primereact/components/lib/inplace/Inplace.js
Line 66 in a2a2f11
primereact/components/lib/fieldset/Fieldset.js
Line 72 in a2a2f11
primereact/components/lib/chip/Chip.js
Line 23 in a2a2f11
primereact/components/lib/splitter/Splitter.js
Line 269 in a2a2f11
You can see more cases searching by 'Enter', quotes included: https://github.com/search?q=repo%3Aprimefaces%2Fprimereact+%27Enter%27&type=code.
Reproducer
No response
PrimeReact version
10.5.1
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: