ssight / native-prompt

Create native prompts with Node.js and Electron
MIT License
24 stars 1 forks source link

Add support for MacBook's touchbar #2

Open Myzel394 opened 2 years ago

Myzel394 commented 2 years ago

It would be nice if there could be support for the touchbars of the old MacBooks.

ssight commented 2 years ago

Hey Myzel394,

How would this work exactly? Would the Cancel and OK buttons also be displayed on the touchbar as well as the prompt itself? Or are you thinking of something along the lines of cut/paste options? I don't have a MacBook at the moment, so I can't really test myself.

Thanks for reaching out!

Myzel394 commented 2 years ago

Would the Cancel and OK buttons also be displayed on the touchbar as well as the prompt itself?

Exactly! That's what's shown on the touchbar.

Or are you thinking of something along the lines of cut/paste options?

I don't know what you mean. Do you mean copy/paste buttons? I've never seen that, I wouldn't add that since there are shortcuts for that already available.

Here's also an image of the PyCharm settings and the buttons on the touchbar (see bottom) and the buttons shown on the normal display (see bottom right of the window).

out