Giter VIP home page Giter VIP logo

Comments (7)

jtc-jtc avatar jtc-jtc commented on July 16, 2024 1

I was using Safari yes. I have just replicated on Chrome and Firefox as well, the same behaviour happens.

from rgthree-comfy.

rgthree avatar rgthree commented on July 16, 2024 1

Interesting, I can see why CMD + C and CMD + V would stick. But I can't find a reason why CMD + Enter would, other than Mac just always not sending a keydown if CMD is pressed. Not impossible, I suppose.

I added a handler so if the META/COMMAND key is lifted (which is working), then rgthree-comfy will clear any other keys that may be stuck. Since I don't have a Mac, let me know how this works.

from rgthree-comfy.

satche avatar satche commented on July 16, 2024 1

It seems to work just fine! Thank you!

from rgthree-comfy.

rgthree avatar rgthree commented on July 16, 2024

Thanks for opening this up. Are you using Safari? Can you also try on Chromium and/or FireFox.

The details here are that the browser window must be losing focus and/or comfyui is swallowing the event such that rgthree-comfy never receives a signal the key has been lifted (unfortunately, browsers don’t have a check for ‘is this key currently down’ but need to track state through a manual ‘key is pressed’ and ‘key is released’; but if that second signal is never sent then the program would forever think the key is still pressed).

from rgthree-comfy.

JoeNavark avatar JoeNavark commented on July 16, 2024

If you alt-tab out and back and then set the bookmark does it work properly?

from rgthree-comfy.

rgthree avatar rgthree commented on July 16, 2024

I'm unable to reproduce on windows, so this must be something specific to Mac. I've added some debug code that could help me a bit and confirm what it is that could be sticking for you.

Pull the latest rgthree-comfy and open ComfyUI with the following hash: http://127.0.0.1:8188/#rgthree-dev=true&rgthree-debug=true. Now, you should see a live view of the current keys rgthree-comfy things are being pressed in the top-right of the screen.

Can you confirm when you copy something that the keys stick as shown in that debug box even after you release? (As JoeNavark mentioned, if you leave the tab and come back, it should clear any down keys too).

  • If you copy a node, is CMD and C stuck, or just C?
  • What happens if you press CMD + C, but don't have any node to copy, etc?
  • Are there other cases of CMD + ? that stick other than copy and paste.

It's not impossible that ComfyUI is intercepting and stopping the event so it can copy. It's not happening on windows with copy and paste, so if that's the case for Mac only then that would be wildly unfortunate. It could be something about Mac without ComfyUI's code either... though a bit odd on multiple browsers too... I'll keep digging here.

from rgthree-comfy.

satche avatar satche commented on July 16, 2024

Since I'm also on OSX, I tested a bit for you.

Copying a node or text with CMD+C will only cause the C key to get stuck. In fact, all combinations with the CMD (Meta) key will cause the associated key to get stuck. For example, if I use CMD+Enter to queue a prompt, the Enter key will get stuck. It doesn't appear to do that with any other key (Ctrl, Alt, Fn, ...).

Unfocusing the window (like switching tabs in the browser) will immediately unstick the key. Also, pressing the stuck key will unstick it as well. For example, if C is stuck after a CMD+C, I just have to press C to unstuck it.

from rgthree-comfy.

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.