Skip to content
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

Remap modifier keys #429

Open
darinpp opened this issue Sep 30, 2023 · 0 comments
Open

Remap modifier keys #429

darinpp opened this issue Sep 30, 2023 · 0 comments

Comments

@darinpp
Copy link

darinpp commented Sep 30, 2023

I switch often between mac os and linux. Sometimes connect to a linux desktop from mac. To make keys behave the same between the two - I swap Ctrl and Meta(Alt) for all apps on the linux desktop. That works perfectly for everything except terminal. A terminal needs to have these reversed to match mac. With extraterm I do that by removing the if around this code in QKeyEventUtilities.ts

  if ((<Platform> process.platform) === "darwin") {
    // Qt on macOS reverses the meaning of these keys compared to what they are commonly called.
    const tmp = ctrlKey;
    ctrlKey = metaKey;
    metaKey = tmp;
  }

What is the proper way to make this configurable? On mac in iTerm there is a set of very convenient settings that allow remapping the modifier keys like this
image

Not sure if that makes sense for extraterm but perhaps just an ability to swap meta and ctrl would be nice. Is the prefered way to do this to add an extra mapping config to the keybindings json files and to use it in QKeyEventUtilities.ts?

@darinpp darinpp changed the title Remap modified keys Remap modifier keys Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant