Skip to content

For a two-key shortcut both keys have to be pressed each time #5

Open

Description

@mardukbp

I defined the mapping Shift+Backspace = Delete. The first time I have to press both keys and it works. If I leave Shift pressed and then press Backspace the key event sent is Backspace instead of Delete. KeyCap should check if a key is already pressed whenever a key is pressed and then both together would match the defined shortcut.

Thanks for writing this awesome program!

Activity

  1. nhmkdev commented on Jan 14, 2022

    @nhmkdev
    Owner

    Which program are you attempting to use Shift+Backspace in? I noticed in notepad it works as desired (you can hold down shift and hit backspace numerous times without letting go of shift). In TextPad it did not work (at all, ha!).

  2. mardukbp commented on Jan 14, 2022

    @mardukbp
    Author

    For me in Notepad it does not work as desired. I configured the shortcut like this:
    grafik

    In VS Code and Outlook I have to press both keys each time.

    I downloaded the latest release, 2.0.0.1. But the window title says 2.0.0.2.

  3. nhmkdev commented on Jan 14, 2022

    @nhmkdev
    Owner

    Haha, well I guess fixing the version number in the next revision would be nice...

    I'll upload a new version to try out. My settings appear to be about the same. Every application I've tried seems to react differently to shift+backspace (potentially having hooks of their own to perform a different action). Very weird...

  4. nhmkdev commented on Jan 14, 2022

    @nhmkdev
    Owner

    Here's something to check: What does left shift vs. right shift do for you? In notepad left-shit + backspace acts as you described (working once) but right-shift works numerous times.

  5. mardukbp commented on Jan 15, 2022

    @mardukbp
    Author

    You are right. Right shift + Backspace works in Notepad, but in VS Code it seems to be hard wired to the Cut command. So in KeyCap I mapped Ctrl + Alt + Backspace to Delete and that does not work continuously. I implemented that mapping with AHK and it works. Given that it is open source, maybe you can look in the source code to see how they handle it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions