Skip to content

Conversation

@FireByteApplications
Copy link

Added hotkeys for the following actions:

Navigate to ops log register - Alt + Shift + O
Create new Ops log entry - Alt + O
Navigate to incident register - Alt + Shift + I
Create new incident - Alt + I
Navigate to message register - Alt + Shift + M
Create new message - Alt + M
Navigate to HQ management - Alt + H
Navigate to contact group register - Alt + C
ICEMS IAR - Alt + Z
ICEMS IUM - Alt + C

Originally Event.toLowerCase() was used for key detection however the Option key on MacOS the equivalent to alt on windows, causes special characters so event.code had to be substituted which works on both systems.

@OSPFNeighbour
Copy link
Collaborator

Just working out which of these conflict on Mac and Linux

@FireByteApplications
Copy link
Author

Yeah it's the option key that conflicts on Mac. The option key turns regular letters into special characters, so when you use event.ToLowercase() it tries to detect the letter you're pushing however because option changes it to a special character it doesn't work.

event.code on the other hand, detects the code of the actual keyboard key being pressed meaning they key letters only translate correctly for QWERTY keyboards any other keyboards will be different letters for the hotkeys but I don't expect that to be an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants