Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.14k stars 299 forks source link

Key sequence Ctrl + 0 permanently assigned to "Quick Bookmark 0: Go to bookmark for number key" #2674

Open mjross opened 6 years ago

mjross commented 6 years ago

Summary

The key sequence Ctrl + 0 (that's a zero) is by default assigned to the command "Quick Bookmark 0: Go to bookmark for number key", but when I try to remove that key sequence from the command -- by clicking the "Clear" key in the Edit > Preferences > Key Bindings dialog -- nothing happens. I have no difficulty: 1) assigning a new key sequence to that command and then removing it, nor 2) removing the default key sequences from any of the other "Quick Bookmark" commands, nor 3) removing key sequences from other unrelated commands.

Even more oddly, earlier I had assigned that key sequence to the command "Editor: Zoom: Reset to Default Size". Usually, when I reassign a key sequence to a different command, Komodo IDE automatically removes that sequence from any other command it might be assigned to. But in this case, the key sequence is assigned to both commands (please see the attached screenshot).

Platform Information

Komodo IDE 10.2.2 on Windows 10 Pro

Attachments

go to bookmark for number key command

mitchell-as commented 6 years ago

Thanks. Confirmed that you cannot remove the Ctrl+0 shortcut.

th3coop commented 6 years ago

Looks like we have the same default set for cmd_fontZoomReset: https://github.com/Komodo/KomodoEdit/blob/master/src/schemes/Default.p.kkf#L193 and cmd_goToQuickBookmark0: https://github.com/Komodo/KomodoEdit/blob/master/src/schemes/Default.p.kkf#L164

My bad. @mjross, I'm finding that the keybinding only works for cmd_fontZoomReset though. Are you not seeing this? I can't delete the key binding for quickBookmark but it doesn't work either. Using Ctrl+0 resets my font zoom.

mjross commented 6 years ago

@mitchell-as, thank you for the confirmation. I was afraid I was just going crazy. So now I will cancel that appointment with the psychiatrist… ;-)

@cgchoffman, I hadn't tried that key sequence on any other command, because I'm so used to all sorts of applications using that key sequence to reset the font size, so I left it as a default for that command. But just now I tried to reassign that key sequence to a different command, and then assign it back to the font size reset, and had no difficulties doing so. In addition, I then went back to the editor window and verified that the key sequence does in fact execute the new command assigned to it, and does not reset the font size. Incidentally, after going through that process, that key sequence is still also assigned to the command "Quick Bookmark 0: Go to bookmark for number key".