Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Hotkeys sometimes fail #229

Open
nog5 opened this issue Mar 14, 2019 · 0 comments
Open

Hotkeys sometimes fail #229

nog5 opened this issue Mar 14, 2019 · 0 comments

Comments

@nog5
Copy link

nog5 commented Mar 14, 2019

Sometimes the clone texture face hotkey "c" will fail to trigger.
It looks like it is due to KeyMappings.EventsMatch Function failing to match the key event in OnKeyAction() due to the event only having a character set but not a KeyCode

99

adding this to the top of the EventsMatch function fixes it for me, but I don't know if this is a decent way to fix it and if it is just me having this problem.

        if (event1.isKey && event1.keyCode == KeyCode.None)
            event1.keyCode = (KeyCode)event1.character;

        if(event2.isKey && event2.keyCode == KeyCode.None)
            event2.keyCode = (KeyCode)event2.character;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant