You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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?
The text was updated successfully, but these errors were encountered:
darinpp
changed the title
Remap modified keys
Remap modifier keys
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 inQKeyEventUtilities.ts
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
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
?The text was updated successfully, but these errors were encountered: