Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set what is sent on shift #89

Open
postelrich opened this issue Jul 18, 2017 · 1 comment
Open

Set what is sent on shift #89

postelrich opened this issue Jul 18, 2017 · 1 comment

Comments

@postelrich
Copy link

Looking how to get the mac backspace/delete combo where if you hold shift you get delete instead of backspace. I followed the code down to where the keys are defined by hex ids but dont see how I could make my own custom one. Looks like _kbfun_press_release does some bit shifting on a global var to register the modifier so maybe my only luck is to create a function that checks if shift is pressed when pressing backspace and replace with a delete?

@benblazak
Copy link
Owner

If you're still interested, and you haven't already figured it out. Yup, that sounds like a good way. Alternately, you could change the shift key to set another flag somewhere, if checking the shift turns out to be hard (though, i think there might be a function for checking with a key is pressed or not). Alternately again, you could make shift also do a (mostly transparent) layer shift as well as setting the shift modifier bit. Just off the top of my head. I think your first idea is probably the simplest/best :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants