Download wp-calypso/apps/notifications/src/panel/helpers/input.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 179 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/notifications/src/panel/helpers/input.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/apps/notifications/src/panel/helpers/input.js
-
curl -L -o input.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/notifications/src/panel/helpers/input.js
179 Bytes
| export const keys = { | |
| KEY_A: 65, | |
| KEY_E: 69, | |
| KEY_L: 76, | |
| KEY_S: 83, | |
| KEY_T: 84, | |
| }; | |
| export const modifierKeyIsActive = ( e ) => { | |
| return e.altKey || e.ctrlKey || e.metaKey; | |
| }; | |