Page 1 of 1

How to use "char" for combinated keys

PostPosted: Sun Aug 04, 2019 8:39 am
by lyl
A key value(integer) can be obtained by the built-in function "char".
For example,
Code: Select all
(char "a")          → 97

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.