Skip to content

Better input suppression #1254

@dlprows

Description

@dlprows

I use a mac for work, and linux for home, so I often accidentally hit Super+c, Super+v, etc.
so i tried remapping these to ctrl+c, ctrl+v, etc

If you don't disable super, then in KDE this will open the Application Launcher
If you disable super, then you can't open the Application Launcher

If you use if_tap, or if_single, then you can get super to work by itself, and the remaps to work, but there's also other KDE shortcuts that now don't work and have to be mapped such as super+escape

In QMK keyboard firmware, they have a key overrides feature. And the way they suppress the input keys is by first tapping a different key, and then releasing the input key.
Tapping Control_R before releasing Super will result in releasing super not doing anything, because there's no Super_L+Control_R shortcut

Adding options to "Suppress Input" and "Suppress with" to advanced options where you can specify what key to suppress the modifier would make remapping super better.
When turned on, the system would press and release the "suppress with" key, and then release the input key. Then it would execute your mapping/macro

for example
input: Super_L + c
remapped to: control_l + c

result:
Super_L key down
(user presses c - but this triggers remap, so it doesn't cause a key down)
Control_R key down
Control_R key up
Super_L key up
Control_L key down
C key down
C key up
Control_L key up

I tried to replicate this using macros, but if I have Release Input on, the key is released before my macro. And if I have Release Input off, then trying key_up(Super_L) in my macro doesn't do anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions