Actually it isn't specifically Windoze, CR translates to 0x0D (13 in decimal) which is sometimes translated as CTRL + M (13th char in the alphabet). My guess is that IDE is using built-in accelerator handling (e.g. Visual Studio) and therefore have no control over the situation. They could
just add in special key-handling in 10-20 lines of code for this particular case.... or as already suggested: change the hotkey
Either way, it's still the responsibility of the IDE to pick hotkeys that won't have unintended side-effects
, that's why I labeled this as a bug. There is great potential here to destroy your code
, if you have a block of text selected and press the hotkey. Personally I tend to leave my cursor somewhere in my code and that line of code is split into two, which is somewhat annoying, especially when you're a noob (like myself) and testing a lot.
They could also offer a method to change it, although that won't help people who don't dig around their IDE configuration, plus it would require quite a bit more work than both solutions offered above.