hedgedoc/src
Erik Michelson db080e29d3
Fix editor being filled with €-symbols when pressing the editor-mode-shortcut (#493)
This fix needs a little bit of explanation. Normally the 'keyUp' prevent is preferred because it fires after being sure, that not some buttons more belong to the shortcut. Additionally some platforms set the key-property of the 'keyDown'-event to the composition result of the key-combination thus resolving under certain environments to '€' while in other environments to 'e'.
The browser's event flow is as following: keyDown -> keyPress -> textInput -> keyUp.
As the keyUp-event is too late (after textinput) and the keyPress-event does not work properly with the modifiers, we felt compelled to use 'keyDown' and watch for 'e' as well as '€' key-properties. If some other keyboard locale does output different characters than these two, that person got a problem - meaning no functionality of the shortcut. But still better than nothing.
2020-08-27 14:32:06 +02:00
..
api Restructure repository (#426) 2020-08-16 16:02:26 +02:00
components Fix editor being filled with €-symbols when pressing the editor-mode-shortcut (#493) 2020-08-27 14:32:06 +02:00
external-types
redux Add sync scroll button (#481) 2020-08-25 21:36:25 +02:00
style Restructure repository (#426) 2020-08-16 16:02:26 +02:00
index.tsx Restructure repository (#426) 2020-08-16 16:02:26 +02:00
react-app-env.d.ts
service-worker.ts
setup-tests.ts
version.json