Sublime Forum

Ctrl+Shift+D not working

#1

Hello, I have a problem with ctrl+shift+d keyboard shortcuts. Since I updated to the latest version, I have noticed that duplicate line stopped working. I think it’s not a mapping problem, but a key event processing problem. I’ve written my findings on an open topic in StackOverflow, but I suppose this forum would be the right place for it.

I use ST3 3103 and a Spanish keyboard. Apart from trying everything which was suggested in other threads before without any success, I made a really odd discovery by logging keyboard events to the console:

  • If I press shift+ctrl+d, it does not work. ST does not recognize the keypress.
  • If I press shift+ctrl+alt+d, it works and ST recognizes the keypress.
  • If, after pressing shift+ctrl+alt+d, I keep Shift+Ctrl pressed and release Alt, pressing d repeatedly makes ST recognize shift+ctrl+d correctly!. I can also release Shift and press it again and still works. It works until I release Ctrl key. Then pressing ctrl+shift+d does nothing, again. No keypress event and no action.

Testing the same sequence out of the console, in the edition window, line duplication works again with this trick. Anyway, it’s a pain in the *ss and I’m afraid there could be some kind of bug in the key handling code. Hope this helps fixing it for future releases.

0 Likes

#2

Can’t reproduce this problem, though not using a Spanish keyboard here. I presume you are using Windows? Can you try a vanilla portable install and see if the problem persists?

0 Likes

#3

Hello again. Just tried the new 3114 version and now keyboard shortcuts work as usual. Fixed bug? Fresh install? I Don’t know.

@qgates I tried the portable version and the behavior was the same with 3103. Thanks for the suggestion, anyway!

0 Likes