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

Mac: Strange Hot Key Behavior #76

Open
currenthandle opened this issue Dec 10, 2023 · 1 comment
Open

Mac: Strange Hot Key Behavior #76

currenthandle opened this issue Dec 10, 2023 · 1 comment

Comments

@currenthandle
Copy link

currenthandle commented Dec 10, 2023

I added the ColemakDH.bundle to /Library/Keyboard Layouts, I rebooted my M1 MBP, and voilà all these Colemak DH keyboard layouts are available in my OS Keyboard preferences.
Screenshot 2023-12-09 at 11 21 16 PM

Here is the issue: when I'm in a Chrome or Firefox tab and I press Ctrl + Esc (the Mac default for Text-to-speech) it triggers Bookmark this tab which should (and does) get triggered by Command + D. Although it works as expected on Safari, ie it does not add a new bookmark and does trigger text-to-speech (Cmd + D is add bookmark on all three browsers). What's weird is I have the Mac OS Keyboard Viewer open and it doesn't indicate that it's receiving Command nor D.
20231209_234919

I also installed Keycodes by Many Tricks and it shows identical between the stock keyboards (US & Colemak) and the third party keyboard (Colemak DH) when pressing Option + Escape:

Modifier Change
	Keys:		⌥
	Modifiers:	524576 / 0x80120 ⓘ

Modifier Change
	Modifiers:	256 / 0x100 ⓘ
NX_ALTERNATEMASK / kCGEventFlagMaskAlternate / NSAlternateKeyMask
	= 524288 / 0x80000
NX_DEVICELALTKEYMASK
	= 32 / 0x20

NX_NONCOALSESCEDMASK / kCGEventFlagMaskNonCoalesced
	= 256 / 0x100
	
	
NX_ALTERNATEMASK / kCGEventFlagMaskAlternate / NSAlternateKeyMask
	= 524288 / 0x80000
NX_DEVICELALTKEYMASK
	= 32 / 0x20

NX_NONCOALSESCEDMASK / kCGEventFlagMaskNonCoalesced
	= 256 / 0x100

It seems like when I set a custom keyboard / Input Source it's registering the same input but triggering different functionality.

This issue does not happen on the stock Colemak that comes with Mac OS but it does happen with the MacOS Colemak DH ANSI and the Colemak DH ANSI - Extended. (IDK the difference between the two / what Extended is all about. Please feel free to fill me in on that). I haven't tried the others bc my (USA) Macbook Pro is ANSI.

Does anyone now what the issue could be? Or how I might resolve this?

Or does anyone know another place I can download and install a Colemak DH "distro"? I tried this repo but I'm having the same issue.

Written on Colemak DH at 7 WPM 😩

@DreymaR
Copy link

DreymaR commented Dec 11, 2023

If this were Windows, I'd say that a Virtual Key Code had gotten wrong. But I don't know the details of how MacOS handles those.

What I do know, is what an "Extended" Mac layout is. That refers to the AltGr key mappings. Unlike the default Windows US layout, many Mac layouts have a set of these for accents and symbols. Colemak uses its own set, so both are provided here. (Note that an "Extended" layout is distinct from Extend, which is a navigation/editing layer typically used by alt layout users.)

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