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?