eclipse.platform
eclipse.platform copied to clipboard
Certain keybinding on MacOS are no longer working on Eclipse RCP plugins
Environment: OS & Version: MacOS Sonoma 14.5 Eclipse Version: 2024-03 (4.31.0) Eclipse Build ID: 20240307-1437
Steps to Reproduce: Create a new plugin project using the default settings. Select the "Hello, World Command" template to create the plugin. Run the plugin and verify that the default binding (M1+6, aka CMD+6) is operational. Change the shortcut to M2+M3+G and verify its functionality by running the plugin. Update the binding in the extension point (plugin.xml) to M2+M3+K and attempt to run the plugin. Note that this key combination does not work. Test the M2+M3+Z combination, which also fails to function. Revert to a previous binding (either M1+6 or M2+M3+G), run the plugin again, and observe that it functions correctly.
Problem Description: After updating to Eclipse framework v4.31.0 within our product (Servoy Developer), the M2+M3+K shortcut, which functioned correctly prior to the migration, is no longer operational.
Update - the problem can be reproduced also with your latest Eclipse:
Version: 2024-06 (4.32.0) Build id: 20240606-1231
Note sure if the same issue, but there seems to be an issue when upgrading to 14.6 reported here: https://github.com/eclipse-platform/eclipse.platform.swt/issues/1398. See if there is a system service with the same keybinding and disable it.
Thank you for your suggestion. Following it, I've investigated the potential conflict with system services on macOS, and I can confirm there are no predefined shortcuts involving Shift + Option + K (M2 + M3 + K) that could be interfering. This particular shortcut also functioned correctly before updating the Eclipse framework, which suggests the issue isn't related to macOS system shortcuts.
Interestingly, I noticed that if I manually assign the M2 + M3 + K combination directly through Eclipse's Preferences under General -> Keys, the shortcut functions as intended. However, when setting the same key combination via the extension point in plugin.xml, it fails to work. This discrepancy hints at a possible bug or change in how Eclipse 2024-03 (v4.31.0) handles key bindings defined in extension points, rather than an issue with global OS-level shortcuts.
Given this, it seems the problem is specific to the Eclipse environment post-upgrade. Your reference to the issue with version 14.6 is also be a useful lead to follow. Thank you for pointing that out.