-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find/Replace Overlay: unexpected key bindings on MacOS #2007
Labels
Comments
HeikoKlare
added a commit
to HeikoKlare/eclipse.platform.ui
that referenced
this issue
Jun 28, 2024
…atform#2007 Currently, the opening action for the find/replace overlay uses a key binding with the OS-dependent "modifier 1" (mapping to CTRL on Windows and CMD on MacOS), while all key bindings within the overlay (such as activating search options) use key bindings with CTRL as a modifier. In order to unify the key bindings, this change adapts the key bindings within the overlay to also use the OS-dependent "modifier 1", such that on MacOS the CMD modifier is used. Fixes eclipse-platform#2007
72 tasks
HeikoKlare
added a commit
to HeikoKlare/eclipse.platform.ui
that referenced
this issue
Jul 8, 2024
…atform#2007 Currently, the opening action for the find/replace overlay uses a key binding with the OS-dependent "modifier 1" (mapping to CTRL on Windows and CMD on MacOS), while all key bindings within the overlay (such as activating search options) use key bindings with CTRL as a modifier. In order to unify the key bindings, this change adapts the key bindings within the overlay to also use the OS-dependent "modifier 1", such that on MacOS the CMD modifier is used. Fixes eclipse-platform#2007
HeikoKlare
added a commit
to HeikoKlare/eclipse.platform.ui
that referenced
this issue
Jul 8, 2024
…atform#2007 Currently, the opening action for the find/replace overlay uses a key binding with the OS-dependent "modifier 1" (mapping to CTRL on Windows and CMD on MacOS), while all key bindings within the overlay (such as activating search options) use key bindings with CTRL as a modifier. In order to unify the key bindings, this change adapts the key bindings within the overlay to also use the OS-dependent "modifier 1", such that on MacOS the CMD modifier is used. Fixes eclipse-platform#2007
HeikoKlare
added a commit
to HeikoKlare/eclipse.platform.ui
that referenced
this issue
Jul 8, 2024
…atform#2007 Currently, the opening action for the find/replace overlay uses a key binding with the OS-dependent "modifier 1" (mapping to CTRL on Windows/Linux and CMD on MacOS), while all key bindings within the overlay (such as activating search options) use key bindings with CTRL as a modifier. In order to unify the key bindings, this change adapts the key bindings within the overlay to also use the OS-dependent "modifier 1", such that on MacOS the CMD modifier is used. The change also adapts the tooltips to (1) reflect the changed keys and (2) represent the MacOS modifier keys via icons like at all other places. Fixes eclipse-platform#2007
HeikoKlare
added a commit
to HeikoKlare/eclipse.platform.ui
that referenced
this issue
Jul 9, 2024
…atform#2007 Currently, the opening action for the find/replace overlay uses a key binding with the OS-dependent "modifier 1" (mapping to CTRL on Windows/Linux and CMD on MacOS), while all key bindings within the overlay (such as activating search options) use key bindings with CTRL as a modifier. In order to unify the key bindings, this change adapts the key bindings within the overlay to also use the OS-dependent "modifier 1", such that on MacOS the CMD modifier is used. The change also adapts the shortcuts to be represented as KeyStroke instances and uses them to match actual key combinations as well as to produce the string representation of the shortcuts for the tooltips. Fixes eclipse-platform#2007
HeikoKlare
added a commit
to HeikoKlare/eclipse.platform.ui
that referenced
this issue
Jul 9, 2024
…atform#2007 Currently, the opening action for the find/replace overlay uses a key binding with the OS-dependent "modifier 1" (mapping to CTRL on Windows/Linux and CMD on MacOS), while all key bindings within the overlay (such as activating search options) use key bindings with CTRL as a modifier. In order to unify the key bindings, this change adapts the key bindings within the overlay to also use the OS-dependent "modifier 1", such that on MacOS the CMD modifier is used. The change also adapts the shortcuts to be represented as KeyStroke instances and uses them to match actual key combinations as well as to produce the string representation of the shortcuts for the tooltips. Fixes eclipse-platform#2007
HeikoKlare
added a commit
to HeikoKlare/eclipse.platform.ui
that referenced
this issue
Jul 9, 2024
…atform#2007 Currently, the opening action for the find/replace overlay uses a key binding with the OS-dependent "modifier 1" (mapping to CTRL on Windows/Linux and CMD on MacOS), while all key bindings within the overlay (such as activating search options) use key bindings with CTRL as a modifier. In order to unify the key bindings, this change adapts the key bindings within the overlay to also use the OS-dependent "modifier 1", such that on MacOS the CMD modifier is used. The change also adapts the shortcuts to be represented as KeyStroke instances and uses them to match actual key combinations as well as to produce the string representation of the shortcuts for the tooltips. Fixes eclipse-platform#2007
HeikoKlare
added a commit
to HeikoKlare/eclipse.platform.ui
that referenced
this issue
Jul 9, 2024
…atform#2007 Currently, the opening action for the find/replace overlay uses a key binding with the OS-dependent "modifier 1" (mapping to CTRL on Windows/Linux and CMD on MacOS), while all key bindings within the overlay (such as activating search options) use key bindings with CTRL as a modifier. In order to unify the key bindings, this change adapts the key bindings within the overlay to also use the OS-dependent "modifier 1", such that on MacOS the CMD modifier is used. The change also adapts the shortcuts to be represented as KeyStroke instances and uses them to match actual key combinations as well as to produce the string representation of the shortcuts for the tooltips. Fixes eclipse-platform#2007
HeikoKlare
added a commit
to HeikoKlare/eclipse.platform.ui
that referenced
this issue
Jul 11, 2024
…atform#2007 Currently, the opening action for the find/replace overlay uses a key binding with the OS-dependent "modifier 1" (mapping to CTRL on Windows/Linux and CMD on MacOS), while all key bindings within the overlay (such as activating search options) use key bindings with CTRL as a modifier. In order to unify the key bindings, this change adapts the key bindings within the overlay to also use the OS-dependent "modifier 1", such that on MacOS the CMD modifier is used. The change also adapts the shortcuts to be represented as KeyStroke instances and uses them to match actual key combinations as well as to produce the string representation of the shortcuts for the tooltips. Fixes eclipse-platform#2007
HeikoKlare
added a commit
to HeikoKlare/eclipse.platform.ui
that referenced
this issue
Jul 12, 2024
…atform#2007 Currently, the opening action for the find/replace overlay uses a key binding with the OS-dependent "modifier 1" (mapping to CTRL on Windows/Linux and CMD on MacOS), while all key bindings within the overlay (such as activating search options) use key bindings with CTRL as a modifier. In order to unify the key bindings, this change adapts the key bindings within the overlay to also use the OS-dependent "modifier 1", such that on MacOS the CMD modifier is used. The change also adapts the shortcuts to be represented as KeyStroke instances and uses them to match actual key combinations as well as to produce the string representation of the shortcuts for the tooltips. Fixes eclipse-platform#2007
lathapatil
pushed a commit
to lathapatil/eclipse.platform.ui
that referenced
this issue
Oct 21, 2024
…atform#2007 Currently, the opening action for the find/replace overlay uses a key binding with the OS-dependent "modifier 1" (mapping to CTRL on Windows/Linux and CMD on MacOS), while all key bindings within the overlay (such as activating search options) use key bindings with CTRL as a modifier. In order to unify the key bindings, this change adapts the key bindings within the overlay to also use the OS-dependent "modifier 1", such that on MacOS the CMD modifier is used. The change also adapts the shortcuts to be represented as KeyStroke instances and uses them to match actual key combinations as well as to produce the string representation of the shortcuts for the tooltips. Fixes eclipse-platform#2007
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
The find/replace overlay can be opened via a keyboard shortcut and also supports a bunch of shortcuts to directly access the find or replace input field, (de-)activate options like regex search or case-sensitive search etc.
On Windows, all these shortcuts are accessible via CTRL+CHAR, while CHAR is some char key like "f", "r" or "w".
On MacOS, however, opening the overlay is done via CMD+F while all the other shortcuts within the overlay are done via CTRL+CHAR (including moving focus to the find input field via CTRL+F). This is because all bindings within the overlay use CTRL as a modifier while the opening action is bound to M1, i.e., the system-dependendent "modifier 1".
From what I experienced with MacOS so far, I would expect all the key bindings to use CMD as a modifier, like it is done for opening the overlay. This can achieved by using
SWT.MOD1
instead ofSWT.CTRL
within the dialog, which still maps to CTRL on Windows.Tested under this environment:
Community
The text was updated successfully, but these errors were encountered: