[konsole] [Bug 499199] New: Allow swapping Meta and Ctrl keys for terminal input
Marco Rebhan
bugzilla_noreply at kde.org
Mon Jan 27 14:16:09 GMT 2025
https://bugs.kde.org/show_bug.cgi?id=499199
Bug ID: 499199
Summary: Allow swapping Meta and Ctrl keys for terminal input
Classification: Applications
Product: konsole
Version: 24.12.1
Platform: Gentoo Packages
OS: Linux
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: keyboard
Assignee: konsole-devel at kde.org
Reporter: me at dblsaiko.net
Target Milestone: ---
SUMMARY
On my system I swap the Ctrl and Meta keys using the keyboard options to get
more Mac-like bindings without switching the keys in every application (which
is only usually possible in anything KDE based anyway). Therefore, in Konsole,
pressing Meta+C will now be ^C while I'd still like it to be Ctrl+C so that I
can use Meta+C for the copy action, like in every other application.
Right now, I have a custom keytab based off the macOS one, where I've replaced
every instance of Ctrl with Meta, and added bindings for every key+Ctrl to send
\x00 to basically make it ignore any combinations of that key (\x00 since
setting it to an empty string seems to make the binding be ignored and use the
default setting). I'm using the macOS one since that is the only one that
defines enough keys to work well enough for this replacement.
This is obviously not ideal, because of the extra work and also because the
base macOS keytab seems to be slightly different to what the shell expects on
Linux (for example sending \x01 for ^A seems to be incorrect as it does
nothing).
I'd like a way to remap physical (or logical rather, since this already goes
through the xkbmap transformation) keyboard modifier keys to essentially revert
the change I've done in keyboard settings to swap Meta and Ctrl for the
terminal input.
STEPS TO REPRODUCE
1. Swap Meta and Ctrl in keyboard settings ("Meta is mapped to Win", "Swap Left
Win with Left Ctrl", "Swap Right Win with Right Ctrl")
OBSERVED RESULT
Terminal control key is now also mapped to Meta
EXPECTED RESULT
There should be a way to revert this for Konsole so that pressing ctrl+c on the
keyboard will once again send ^C etc., and meta+c can be used for Copy. This is
how it works on the Mac.
SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.17
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.9-gentoo-dist (64-bit)
Graphics Platform: Wayland
Processors: 24 × 13th Gen Intel® Core™ i7-13700F
Memory: 62.6 GiB of RAM
Graphics Processor: AMD Radeon RX 6800 XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7D25
System Version: 1.0
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list