Copy/Paste on Mac not working when hiding menuBar

There seems to be an issue with copy/paste on a Mac when the menu’s are disabled.

When using this in globals:
//remove servoy menu’s and toolbar in Smartclient
var x = plugins.window.getMenuBar();
x.setVisible(false);
x.validate();

It is no longer possible to copy, past, select all, etc on a Mac. In windows however it does still work. Apparently in windows, only the menu is hidden while on Mac, the whole functionality is disabled.

We use Nimbus LAF btw.

Is this a bug and is there a work around that anyone knows of?

we hide the menubar also, the same way, on mac (we dont use Nimbus! but the default OSX L&F)

and there the copy/paste still works…

didn’t it not changed, by doing CTRL now, instead of CMD key?

alex050478:
There seems to be an issue with copy/paste on a Mac when the menu’s are disabled.

When using this in globals:
//remove servoy menu’s and toolbar in Smartclient
var x = plugins.window.getMenuBar();
x.setVisible(false);
x.validate();

It is no longer possible to copy, past, select all, etc on a Mac. In windows however it does still work. Apparently in windows, only the menu is hidden while on Mac, the whole functionality is disabled.

We use Nimbus LAF btw.

Is this a bug and is there a work around that anyone knows of?

non aqua look and feels have shortcuts based on control key, not command; however we changed/fixed this behavior in latest Servoy 6 so all shortcuts use command key (as expected) ; indeed menubar has influence because command key was working through menubar actions (copy,paste…), if menubar is removed those actions will not work anymore;

if menubar is removed those actions will not work anymore;

in our case, we also hide the the menubar completly, and copy paste still works on MAC OSX. in 5.2.8

Harjo:

if menubar is removed those actions will not work anymore;

in our case, we also hide the the menubar completly, and copy paste still works on MAC OSX. in 5.2.8

Yes, in aqua look and feel it works because the component has those shortcuts. In other look and feels the component has control shortcuts and menu has command shortcuts. So, if you remove the menu only the control shortcuts will work. But in Servoy 6.0 we changed so that the component has command shortcuts, so control shortcuts will not work anymore.

But in Servoy 6.0 we changed so that the component has command shortcuts, so control shortcuts will not work anymore.

So if we migrate later on to Servoy 6, we loose the ability to copy paste than, when we remove the menu-bar

not happy with that…

Harjo:

But in Servoy 6.0 we changed so that the component has command shortcuts, so control shortcuts will not work anymore.

So if we migrate later on to Servoy 6, we loose the ability to copy paste than, when we remove the menu-bar

not happy with that…

nothing is lost, in Servoy 6(MACOS) all shortcuts are using command modifier, no matter what look and feel you use and whether menu is present or not

ah oke, understand now! thanks…