How to use "char" for combinated keys
Posted: Sun Aug 04, 2019 8:39 am
A key value(integer) can be obtained by the built-in function "char".
For example,
My question is: How to obtain the value of combinated keys like this:
(myfunc "ctrl a") which means "CTRL + a" . And also "CTRL+Alt+a" , "CTRL+SHIFT+a" are wanted.
Thank you.
For example,
Code: Select all
(char "a") → 97
(myfunc "ctrl a") which means "CTRL + a" . And also "CTRL+Alt+a" , "CTRL+SHIFT+a" are wanted.
Thank you.