Skip to content

How do I compare the key press? #4

Answered by byteduck
ajh123 asked this question in Q&A
Discussion options

You must be logged in to vote

I believe the keycode for delete is 46 - you can see a list of standard keycodes here. Also, make sure you're using bitwise & for your control and alt - something like KBD_MOD_CTRL & evt.modifiers. evt.modifiers is a bitfield of all the different keyboard modifiers, and KBD_MOD_CTRL and KBD_MOD_ALT are all single bits corresponding to the appropriate modifier.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ajh123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants