Open Hans5958 opened 3 years ago
This regex is not to crazy enough... /(\w|[ \+])+/
if the match is equal to the whole string, it pretty much works.
This regex is not to crazy enough...
/(\w|[ \+])+/
if the match is equal to the whole string, it pretty much works.
Eh, I need at least one example to know whether it works.
I did some testing and I finally got this.
/^Ctrl( \+ Shift)?( \+ (.|ALT))?$/
I'll try to create a PR for this later.
No addon uses it yet, but we'll support settings of type
"key"
. I don't think there's a real way of verifying default key combinations are correct, all I got is the JS code that detects the keys and outputs a string with them. If you wanna go crazy, build a regex for it :POriginally posted by @WorldLanguages in https://github.com/ScratchAddons/manifest-schema/issues/13#issuecomment-731648777