freeCodeCamp/client
Radi Totev e581bd9081
feat(client): shortcuts legend modal available on pressing the ? key (#45530)
* Add modal texts in translations.json file

* Add shortcuts modal state in redux

* Create shortcuts modal

* Integrate shortcuts modal

* Resolve codefactor.io issues

* Extend list of shortcuts

Based on this comment:
https://github.com/freeCodeCamp/freeCodeCamp/issues/36841#issuecomment-933310078

* Remove temporary placeholder for modal title

* Open modal fom Hotkeys instead of learn.tsx

As suggested in this comment:
https://github.com/freeCodeCamp/freeCodeCamp/pull/45530#issuecomment-1101224993

* Complete list in transaltions

* Change shortcut presentation fo better a11y

Use table instead of list items as suggestedin this comment:
https://github.com/freeCodeCamp/freeCodeCamp/pull/45530#issuecomment-1101796368

* Add aria-labelledby

* Remove GAnalytics

* Remove leftover style

* Remove table caption

* autofocus on modal close button

* Improve modal a11y

- Add requested changes from https://github.com/freeCodeCamp/freeCodeCamp/pull/45530#issuecomment-1104764766
- Leave autofocus and parent div role=dialog changes for later. (https://github.com/freeCodeCamp/freeCodeCamp/pull/45530#issuecomment-1107754148)

* [WIP] Alllow users to turn off keyboard shortcuts

* Add keyboard shortcuts switch in settings

* Disable shortcuts

* Remove toggle switch description

* Refactor and cleanup

* Remove close button from modal header

Suggested by bbsmooth:
https://github.com/freeCodeCamp/freeCodeCamp/pull/45530#issuecomment-1107861091

* Fix lint issues

* Disable shortcuts

* Disable shortcuts by default

* Update challenge output test

* Update challenge-hot-keys test

* Disable shortcuts from inside handlers

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2022-06-03 09:57:52 -07:00
..
i18n feat(client): shortcuts legend modal available on pressing the ? key (#45530) 2022-06-03 09:57:52 -07:00
plugins fix(dx): make gatsby id static for hot reloading (#44542) 2022-01-10 11:03:20 +02:00
src feat(client): shortcuts legend modal available on pressing the ? key (#45530) 2022-06-03 09:57:52 -07:00
static chore: delete _headers file from Netlify days (#46176) 2022-05-27 19:57:20 +05:30
utils feat: new js cert (#45873) 2022-05-16 11:53:45 +02:00
.babelrc.js fix: control CodeSee via .env variable (#42428) 2021-06-10 18:38:14 +05:30
.gitignore chore(client): refactor & organise config (#40875) 2021-02-03 15:22:07 +05:30
gatsby-browser.js fix: order imports and remove circular dependencies (#41824) 2021-08-02 08:39:40 -05:00
gatsby-config.js Add Sentry to client for error handling (#43920) 2022-04-15 09:54:02 -05:00
gatsby-node.js feat: improve file insertion (#45942) 2022-05-14 10:06:26 +05:30
gatsby-ssr.js fix: order imports and remove circular dependencies (#41824) 2021-08-02 08:39:40 -05:00
package.json fix(deps): update dependency react-reflex to v4.0.9 (#46206) 2022-05-30 18:50:01 +05:30
postcss.config.js feat: commandline chic 2019-08-20 13:37:11 +05:30
webpack-workers.js fix: update path of webpack bundles (#46180) 2022-05-27 19:36:05 +02:00