pkamb / PowerKey

Remap your Macbook's power key to Forward Delete
MIT License
230 stars 29 forks source link

PowerKey and the MacBook Pro Touch Bar #48

Closed pkamb closed 7 years ago

pkamb commented 7 years ago

On Apple's latests MacBook Pro notebooks, the Touch Bar replaces all keys on the function row, including the Escape key and Power key.

Source: https://512pixels.net/2016/10/magic-toolbar-sierra-leak/

applepaysplashsa_geo

Opening this issue to discuss usage of and/or alternatives to PowerKey on new Apple laptops with the Magic Toolbar.

jdlien commented 7 years ago

I bought PowerKey on a lark hoping that it might work with the TouchID "Power" button, but unfortunately that doesn't seem to be the case. Note that a triple-click of this button brings up accessibility options, so clearly the system is aware of presses to the button in some capacity.

In iOS, tools like @rpetrich's Activator could do things like perform different actions based on which finger touched the sensor, so perhaps an intrepid hacker could do quite a bit with the MacBook Pro TouchID sensor. I'm hoping that PowerKey or some similar utility could get a eventually get a click on TouchID to function as Forward Delete or the like.

jdlien commented 7 years ago

I have submitted a pull request for my fork of PowerKey that adds support for the TouchID button on TouchBar MacBook Pros. It works consistently, but there is a delay before the release of the key registers. Also, my version will catch the triple click on TouchID, which normally triggers an Accessibility Options dialog, and map that to the chosen command (eg Forward Delete).

Double clicks do not register.

I'd like to know if there's a way to eliminate the delay in the key release registering.

pkamb commented 7 years ago

Touch Bar keyboard events Pull Request: https://github.com/pkamb/PowerKey/pull/54

pkamb commented 7 years ago

Added in v1.6 via PR #60