Skip to content

Eclipse accelerator keys do not work in terminal #426

Open
@garretwilson

Description

@garretwilson

I'm having trouble with basic terminal functionality in Eclipse. I originally filed eclipse-platform/eclipse.platform.ui#805, but they said to file a ticket here.

I'm using Eclipse EE 2023-06 RC1 on Windows 10. I wanted to map the keypress Ctrl+1 so that I could switch back to the editor when typing in a terminal view.

  1. I went to Keys in the Preferences.
  2. I made a copy of the "Activate Editor" command.
  3. I set "Binding" to Ctrl+1.
  4. I set "When" to "In Terminal View".
  5. I opened a Git Bash terminal (by right-clicking on a project and then Show in Local Terminal > Git Bash.
  6. I pressed Ctrl+1.

I expected this to take me to the editor. But instead it entered a 1 in the terminal.

If I close the Git Bash tab and click on the "Terminal" view tab itself, then Ctrl+1 takes me to the editor. However this misses the point.

The interface in general seems buggy. Sometimes when I open a terminal, it wraps at 80 characters! But then I do this:

  1. Right-Click > Maximize View. (maximizes the view)
  2. Right-Click > Maximize View. (unmaximizes the view)

Suddenly the terminal no longer wraps at 80 characters; it wraps at the edge of the view, as desired.

And finally I found a sequence of events to force the accelerator keys to be recognized in the terminal (but only temporarily).

  1. Open a terminal view tab (e.g. by right-clicking on a project and then Show in Local Terminal > Git Bash.
  2. Open another a terminal view tab. (At this point the 80-column wrapping bug suddenly presents itself.)
  3. Close one of the terminal view tabs.

Now the accelerator key Ctrl+1 (see above) suddenly works! I can be typing in the terminal, and when I press Ctrl+1 it takes me to the editor instead of entering 1 in the terminal.

However when I click back on the terminal, suddenly Ctrl+1 stops working again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    terminalThe TM Terminal collection of features in CDT

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions