Community
Participate
Working Groups
Please launch the attached application on Linux (tried on CentOS 7, GTK 3.28.3): if menuItem.setAccelerator is invoked, it will show the set accelerator ignoring the text after the \t. If menuItem.setAccelerator is not invoked, it will show the one accelerator, but not the other. Since we are not using accelerators but rather key listeners in our application, this causes the accelerators to only partly be shown.
Created attachment 277007 [details] a slightly modified Snippet29 for reproducing the problem
Created attachment 277008 [details] Screenshot with setAccelerator invoked
Created attachment 277009 [details] Screenshot without setAccelerator invoked
Created attachment 277010 [details] Screenshot on Windows 10
Created attachment 277011 [details] Screenshot on macOS 10.14
I can reproduce the issue with GTK3.24/Fedora 29, using SWT from master as of today.
The other screenshots you have posted, do they show the behaviour with or without the accelerator invoked?
There is definitely a bug in SWT here: MenuItem.setText() doesn't work for mnemonics that don't start with a valid modifier (Ctrl/Shift/etc.). This is fixable and will solve the issue of the MenuItem's accelerator text from being blank. There is however a platform difference: once this is fixed, the MenuItem's accelerator text will only read "/". This is because GTK only accepts modifier keys for combination inputs, and Numpad/Keypad is not a modifier key.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
still a problem