How to use "char" for combinated keys

Q&A's, tips, howto's
Post Reply
lyl
Posts: 43
Joined: Sun Mar 25, 2018 5:00 am

How to use "char" for combinated keys

Post 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.

Post Reply