freeCodeCamp/client/src
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
..
__mocks__ chore(client): reorder and rename rwd changes (#45972) 2022-05-16 19:40:18 +05:30
__tests__/integration chore: convert error test to TypeScript (#45841) 2022-05-02 08:19:55 -07:00
analytics fix: order imports and remove circular dependencies (#41824) 2021-08-02 08:39:40 -05:00
assets fix(a11y): main menu a11y updates (#45137) 2022-06-01 10:39:26 +03:00
client fix: fix util import statement (#45104) 2022-02-24 08:16:47 -08:00
client-only-routes feat(client): shortcuts legend modal available on pressing the ? key (#45530) 2022-06-03 09:57:52 -07:00
components feat(client): shortcuts legend modal available on pressing the ? key (#45530) 2022-06-03 09:57:52 -07:00
pages test: fix donate page for existing donors (#46255) 2022-05-31 23:06:35 +01:00
redux feat(client): shortcuts legend modal available on pressing the ? key (#45530) 2022-06-03 09:57:52 -07:00
resources feat: new js cert (#45873) 2022-05-16 11:53:45 +02:00
templates feat(client): shortcuts legend modal available on pressing the ? key (#45530) 2022-06-03 09:57:52 -07:00
utils fix(client): add mathjax to intermediate-algorithm-scripting (#46270) 2022-06-01 20:01:22 +05:30
declarations.d.ts chore: TS migrate MultifileEditor (#45857) 2022-05-19 21:14:22 +05:30
html.tsx feat(client): convert class components to functional components (#43226) 2021-10-27 11:17:47 +05:30