cruncher icon indicating copy to clipboard operation
cruncher copied to clipboard

+ is converted to =

Open cperrin88 opened this issue 9 years ago • 7 comments

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

cperrin88 avatar Jan 13 '16 14:01 cperrin88

Looks like this is what's breaking numpad plus.

1j01 avatar Jan 13 '16 21:01 1j01

Or rather, CodeMirror. Inserting a plus with the numpad works by default, but their keyName function decides it's = for key event handling purposes.

1j01 avatar Jan 13 '16 21:01 1j01

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.

1j01 avatar Jan 13 '16 23:01 1j01

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.

worldsayshi avatar Jan 14 '16 12:01 worldsayshi

Also happens with the numpad '+' only, with US keyboard using Firefox 43.0.4 on Windows 10.

weissometer avatar Jan 14 '16 17:01 weissometer

This happens to me, as well, on a German keyboard layout, Arch Linux, and Chromium 56. Any ideas on how to fix this?

blinry avatar Mar 16 '17 18:03 blinry

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!

osnr avatar Mar 16 '17 18:03 osnr