Skip to content

Ctrl+Backspace does not work as expected #77

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

Closed
psistorm opened this issue Jul 1, 2016 · 3 comments
Closed

Ctrl+Backspace does not work as expected #77

psistorm opened this issue Jul 1, 2016 · 3 comments

Comments

@psistorm
Copy link

psistorm commented Jul 1, 2016

When typing something into the Keypirinha bar and wanting to remove the last typed word I often try to do this via Ctrl + Backspace and always wonder why it displays a cryptic icon instead of deleting the last word. This works in all windows input fields the same way, either Google Chrome search bar, Windows Start Menu search bar and more. I think it would make sense here too to quickly repair typos.

In Windows it also deletes words like "word:otherword" completely. Maybe it makes sense in Keypirinha to delete only the word until ":" so there would remain "word:". On the other hand everything until the previous Space or Tab could be removed. So "word[tab]otherword" would lead to "word[tab]" or "word otherword" to "word "

I hope it's clear what I wanted to express. For me it would make using it even a lot better :)

@polyvertex
Copy link
Member

It makes sense.

I would tend to expect Ctrl+Backspace to stick to the Windows convention here, without trying to be smart about the separators (i.e. only using blank characters as separators). Mainly because KP is meant to be generic so it must not assume anything about the nature of the content of the edit box.

@polyvertex
Copy link
Member

Keypirinha integrates an unmodified Edit Control that comes with the Common Controls library shipped with Windows (comctl32.dll), so the behavior you observe is not implemented in Keypirinha per se.

So that made me wondering about this square character and why it is inserted. FYI, it is a DEL character (code 0x7F) and after some reading, it appears this behavior is a bug introduced in Windows 7 (i.e. the comctl32.dll version that is shipped with it).

Well, now I have to manually override the faulty implementation of a system library. Great.

@polyvertex
Copy link
Member

Available in 2.7

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

No branches or pull requests

2 participants