I added hidden component KeyboardHandler which handle keyboard input.
This component rendered in AppRender component.
KeyboardHandler uses data from keyCodes.json in constants folder.
Result:
Now it is possible to interact with calculator by keyboard.
Problem:
Not possible to use keyboard in web version.
Solution:
I added hidden component
KeyboardHandler
which handle keyboard input. This component rendered inAppRender
component.KeyboardHandler
uses data fromkeyCodes.json
inconstants
folder.Result:
Now it is possible to interact with calculator by keyboard.