lectrote icon indicating copy to clipboard operation
lectrote copied to clipboard

Various menu options should be disabled in static windows (Mac)

Open erkyrath opened this issue 9 years ago • 6 comments

In the About and Reference Card windows, that is.

I suppose the Zoom options could work, although I'd have to rethink the fixed-size-ness of those windows.

erkyrath avatar Jan 29 '16 03:01 erkyrath

Or set up a new (reduced) menu set via browserwin.setMenu(menu) (non-Mac)

erkyrath avatar Jan 31 '16 18:01 erkyrath

Done for Win/Linux -- the View menu is omitted.

erkyrath avatar Feb 02 '16 01:02 erkyrath

Leaving open for Mac version. Dynamic menu state is not yet supported.

erkyrath avatar Feb 02 '16 02:02 erkyrath

While I'm at it, disable the Cut and Paste options in static windows also. (Mac)

erkyrath avatar Feb 02 '16 02:02 erkyrath

Actually, the Zoom In/Out menu options are now global rather than window-specific, so maybe this is all irrelevant.

erkyrath avatar Feb 26 '16 20:02 erkyrath

Still applies to Cut and Paste, and also Reset Game.

It turns out you can enable/disable menu options on the Mac by setting the enabled property. We'd have to do this dynamically when a window is focused. Pain in the butt.

erkyrath avatar Jun 05 '16 19:06 erkyrath