cruncher
cruncher copied to clipboard
+ is converted to =
Pressing the + key results in = beeing printed on the screen.
System: Kubuntun Linux 15.10 Chrome 47.0.2526.106 (64-bit) German keyboard layout
Looks like this is what's breaking numpad plus.
Or rather, CodeMirror. Inserting a plus with the numpad works by default, but their keyName function decides it's = for key event handling purposes.
On the other hand, this listener is there just to delete everything on the line after you type =. It could be replaced by an implementation that does only that.
Also happens on Swedish and British Mac keyboard: https://news.ycombinator.com/item?id=10893300
The swedish keyboard is on ubuntu 14.04 and Chrome 47.0.2526.106 (64-bit).
Oh, does not happen in Firefox.
Also happens with the numpad '+' only, with US keyboard using Firefox 43.0.4 on Windows 10.
This happens to me, as well, on a German keyboard layout, Arch Linux, and Chromium 56. Any ideas on how to fix this?
I'd guess the problem is here and somehow = matches + on non-American keyboards -- you could probably just delete that key binding and lose the nice "fill in the right side of the equation" behavior, or maybe upgrading CodeMirror would help.
I might not get to this for a while (a week or more); not actively maintaining Cruncher. Pull requests welcome!