E2E Tests for Hotkeys User Preferences menu
- What shows if there are no hotkey definitions?
- What shows if there are enough to overflow the container?
- What happens if there are duplicate definitions?
- Restore to default?
- Create additional test cases
Hi @dannyrb , I need clarification on the following questions:
- Can we have a hotkey combination with more than 2 keys or 2 is the limit? Ex:
ctrl+shift+E - Is it mandatory to insert a hotkey for a function or the field can be left blank on User Preferences modal?
- What are all the "invalid" hotkey combination? I was able to identify:
- ctrl+z
- ctrl+x
- ctrl+c
- ctrl+v
- ctrl+b
- ctrl+n
- ctrl+a
- ctrl+d
- ctrl+f
- ctrl+g
- ctrl+h
- ctrl+j
- ctrl+l
- ctrl+w
- ctrl+r
- ctrl+t
- ctrl+o
- ctrl+p
- Do we have others?
- Can we have a hotkey combination with more than 2 keys or 2 is the limit? Ex: ctrl+shift+E
We have the ability to support as many key combinations as we would like. Including sequences (Like ctrl+k then ctrl+c). We're using this library to listen for a respond to keys: https://github.com/ccampbell/mousetrap
That being said, I think the "record keys" logic in the User Preferences panel may be currently limited to two keys.
- Is it mandatory to insert a hotkey for a function or the field can be left blank on User Preferences modal?
We should allow functions/commands to be blank/empty.
- What are all the "invalid" hotkey combination? I was able to identify:
"Built-in" hotkeys (like undo with ctrl+z) can't be registered the "normal" way with mousetrap. We should determine the best way to handle these cases, as it may not be good practice to simply allow users to override them:
- https://craig.is/killing/mice (
Stopping the default behavior)