porcupine icon indicating copy to clipboard operation
porcupine copied to clipboard

quit key binding not shown

Open Akuli opened this issue 4 years ago • 10 comments

<ThePhilgrim2> I can quit, but there is no key binding for it
<ThePhilgrim2> or actually
<ThePhilgrim2> there is, but it's not shown
<Akuli> it should quit with cmd+q, just close all tabs first
<ThePhilgrim2> cmd Q works, but it doesn't show the binding like the others do
<Akuli> ok so that's weird :D

Akuli avatar Feb 07 '21 21:02 Akuli

I wonder if this still happens, after merging #297

Akuli avatar Feb 10 '21 10:02 Akuli

@1anakin20 Can you check whether this works too? :D

Akuli avatar Oct 05 '21 12:10 Akuli

I'll take a look

1anakin20 avatar Oct 05 '21 13:10 1anakin20

It quits fine with cmd+q. I am unsure what you mean by quit keybinding is not shown. It is shown on the menu bar > Python > Quit python. quit_keybind

1anakin20 avatar Oct 06 '21 13:10 1anakin20

What's in the File menu?

I don't like how Porcupine shows up as Python when running it, but I guess fixing that properly would require making a Mac app (#266), as I haven't defined the "Python" menu anywhere in my code.

Akuli avatar Oct 06 '21 13:10 Akuli

This is the whole menu bar, and the inside of the file menu image

I'll look into changing python to Porcupine in the menu bar. MacOS sets that menu to the name of the app, in this case Python sets it to "Python" by default.

1anakin20 avatar Oct 06 '21 13:10 1anakin20

Somehow the "File" menu isn't in that screenshot. Maybe it went away when you pressed a key to take a screenshot?

Akuli avatar Oct 06 '21 14:10 Akuli

You are right, pressed a wrong key. Here it should be image

1anakin20 avatar Oct 06 '21 14:10 1anakin20

So that's the "Quit" key binding that isn't shown, but apparently the menus need more work than just making that key binding visible.

Akuli avatar Oct 06 '21 15:10 Akuli

https://tkdocs.com/tutorial/menus.html -> mac part

I recommend to also implement these tk::mac:: functions, it shouldn't use tk's default help, and preferences dialog

rdbende avatar Oct 06 '21 21:10 rdbende