On 23-08-2022 16:00, Dejan Lekic wrote:
In the tiny IDE I work on I have the following problem:
This works:
MenuItem compileFileItem = new MenuItem("_Compile file", (MenuItem mi) => pm.compileFile(), "activate"); compileFileItem.addAccelerator("activate", accelGroup, GdkKeysyms.GDK_F6, ModifierType.SHIFT_MASK, AccelFlags.VISIBLE); projectMenu.add(compileFileItem);
However, this does not
MenuItem compileFileItem = new MenuItem("_Compile file", (MenuItem mi) => pm.compileFile(), "activate"); compileFileItem.addAccelerator("activate", accelGroup, GdkKeysyms.GDK_F6, ModifierType.CONTROL_MASK, AccelFlags.VISIBLE); projectMenu.add(compileFileItem);
I suspect something "stole" the CTRL-F6 shortcut. Same is happening with ALT-F6. Any ideas how to fix this?
You might be able to trace it using the gtk inspector, by running your
application with the following environment variable set:
GTK_DEBUG=interactive