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

CapsLock does not seem to work as a valid modifier #171

Open
hilts-vaughan opened this issue May 4, 2015 · 1 comment
Open

CapsLock does not seem to work as a valid modifier #171

hilts-vaughan opened this issue May 4, 2015 · 1 comment

Comments

@hilts-vaughan
Copy link

I can't seem to use the hotkey Caps Lock + Shift or anything with Caps Lock. I don't use mine and would prefer to use it as a modifier key. Is there any reason ShiftIt does not support the caps lock key functionality?

@fikovnik
Copy link
Owner

Do you know about any other app in which you can use caps lock as a modifier? I personally remap caps lock to control (a habit from old sun keyboards).

Looking at /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Headers/Events.h I do not see capslock:

typedef UInt16                          EventModifiers;
enum {
                                        /* modifiers */
  activeFlagBit                 = 0,    /* activate? (activateEvt and mouseDown)*/
  btnStateBit                   = 7,    /* state of button?*/
  cmdKeyBit                     = 8,    /* command key down?*/
  shiftKeyBit                   = 9,    /* shift key down?*/
  alphaLockBit                  = 10,   /* alpha lock down?*/
  optionKeyBit                  = 11,   /* option key down?*/
  controlKeyBit                 = 12,   /* control key down?*/
  rightShiftKeyBit              = 13,   /* right shift key down? Not supported on Mac OS X.*/
  rightOptionKeyBit             = 14,   /* right Option key down? Not supported on Mac OS X.*/
  rightControlKeyBit            = 15    /* right Control key down? Not supported on Mac OS X.*/
};

On the other hand it seems it is possible to detect it:
https://developer.apple.com/library/mac/qa/qa1519/_index.html

I plan to move to a better library for shortcut recording (e.g. https://github.com/shpakovski/MASShortcut), but right now I don't have any time to work on it. But I welcome contribution :-)

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