Git Product home page Git Product logo

Comments (14)

AndreasVerhoeven avatar AndreasVerhoeven commented on September 2, 2024

Hi Dieter,

Can you easily reproduce this behavior?

My best bet is that the "key presses" detection function is sometimes missing a "key up", event, which makes the app thinks another key is always pressed (in which case it won't pop up the Touch Bar - only single Fn presses will do).

from touchbardemoapp.

dieterdemeyer avatar dieterdemeyer commented on September 2, 2024

Hello,

I have the TouchBarServer application running non stop.
Then after some time, pressing the Fn key doesn't show the TouchBar anymore.
The solution is to reenable it from the menubar, or as it turns out, wait some more and then it just works again for a period of time.

Is there any logging behind the scenes that we can look at to find out where the problem is ?

from touchbardemoapp.

AndreasVerhoeven avatar AndreasVerhoeven commented on September 2, 2024

There's no logging by default, but if you have Xcode it's fairly easy to add it yourself:
TouchBarDelegate.m, line 262: add NSLog(@"Key event: %@ (%ld)", event, (unsigned long) pressedKeySet.count);

from touchbardemoapp.

juststevede avatar juststevede commented on September 2, 2024

Hi guys,

I have the same behavior. It is working great for some time but stops working and need to be disabled and enabled in the menubar to make it work again.

Steve

from touchbardemoapp.

AndreasVerhoeven avatar AndreasVerhoeven commented on September 2, 2024

Not sure what's going on yet, but we're trying to track this. Difficulty is caused by the time it takes for it to stop working

from touchbardemoapp.

juststevede avatar juststevede commented on September 2, 2024

I will try to narrow it down and provide more information.

Anyway thank you so much for sharing your awesome work!

from touchbardemoapp.

dieterdemeyer avatar dieterdemeyer commented on September 2, 2024

Hi,

I can't seem to find the file TouchBarDelegate.m, only AppDelegate.m.
I assume that's the one you mean ?

This time, it stopped working coming out of sleep mode. After opening XCode, it worked again. But it seems very random, both in the moment it stops working as well in opening other applications where the functionality returns..

from touchbardemoapp.

AndreasVerhoeven avatar AndreasVerhoeven commented on September 2, 2024

Sorry, my bad. It's this file: https://github.com/bikkelbroeders/TouchBarDemoApp/blob/master/TouchBarServer/AppDelegate.m

from touchbardemoapp.

robbertkl avatar robbertkl commented on September 2, 2024

@dieterdemeyer @juststevede We've just released v1.2 which handles the Fn key in a completely different (and hopefully more reliable) way. Could you install this version and see if the issue is now gone?

from touchbardemoapp.

juststevede avatar juststevede commented on September 2, 2024

I already downloaded the new version and will keep you posted. Again, thanks for sharing your work!

from touchbardemoapp.

dieterdemeyer avatar dieterdemeyer commented on September 2, 2024

Same here.
Installed new version and I will let you know..

from touchbardemoapp.

dieterdemeyer avatar dieterdemeyer commented on September 2, 2024

I've been running the new version on 2 MacBooks for a few hours now without any issues.

from touchbardemoapp.

juststevede avatar juststevede commented on September 2, 2024

I didn't have any issues anymore too. Well done!

from touchbardemoapp.

robbertkl avatar robbertkl commented on September 2, 2024

Awesome, I'll consider this resolved and close the issue. If ever it's coming back after all, just reopen or submit a new issue.

from touchbardemoapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.