Dustin Simpson

macOS Touch Bar soft keys not transmitting

8 posts in this topic

Recently upgraded my Symless server machine to a MacBook Pro with touch bar.

The soft escape key along with function keys don't get sent to clients. So doing things like vi becomes a bit of a challenge.

Attached image shows escape key down and key up event on the server from the touch bar.  Doubt that helps as it is identical to what is produced on a regular keyboard.

Any help is appreciated.

unnamed.png

Share this post


Link to post
Share on other sites

Hi @Dustin Simpson. Sorry but we are not supporting hotkeys from Mac's touchbar yet. This could be a feature that we might support in the future though.

Share this post


Link to post
Share on other sites

@Paul Suarez, thank you for the quick reply.  That is disappointing.  I can live without function keys, but the escape key not transmitting is huge as I am sure you can imagine.

I will see what I can do about key mappings or something.

I appreciate your time. Keep up the great work.  Love the product. 

Share this post


Link to post
Share on other sites

You're welcome @Dustin Simpson. You can also try to remap the keys alternatively first. 

Here’s how.

  1. Go to Apple menu > System Preferences, and click on Keyboard.
  2. Click the Keyboard tab if it’s not active, and then click the Modifier Keys button on the lower right.
  3. In the pop-up window that appears, select your keyboard from the “Select keyboard” pop-up menu at the top.
  4. You’ll see a list of four keys: Caps Lock, Control, Option, and Command. You can reassign one of those keys to act as the Escape key. You may not want to select the Command key, since it’s frequently used for keyboard shortcuts. You may not want to use Control or Option, either, for the same reason. Pick a key you want to reassign, then click on the pop-up menu to the right of that key, Select Escape.
  5. Click OK. You can also quit System Preferences.

Taken from: How to bring back a physical Escape key on the new MacBook Pro with Touch Bar - Macworld

Share this post


Link to post
Share on other sites

For anyone suffering the same problem and is willing to compile Synergy themselves (it was very easy), I posted a hack that I did here:

https://github.com/symless/synergy/issues/5845

I have verified that this fixes the escape key, function keys as well as other things like mute, exposé, play, etc etc.

Share this post


Link to post
Share on other sites

@Paul Suarez, hope you are well.

Just thought I would follow up after a couple work days using the changes I made to 
src/lib/platform/OSXScreen.mm

It is working great with no negative repercussions with my machines....

After doing some more research on Quartz events I think that not trapping the 0x1D (unclassified gesture) event is the way to go.  When that event isn't trapped then the other events (keyup, keydown) are produced.  So, I think my "hack" is closer to the correct fix than I originally had thought it might be.

 

  • Like 1

Share this post


Link to post
Share on other sites

Hi @Dustin Simpson. I actually have endorsed it to our developers and they are checking it further. Thanks for sharing this wonderful workaround (currently). Keep rockin'! ;)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now