View unanswered posts | View active topics It is currently Thu Mar 28, 2024 7:09 pm



← Back to the Calcudoku puzzle page




Reply to topic  [ 22 posts ]  Go to page Previous  1, 2, 3
 small fixes 
Author Message
User avatar

Posted on: Fri Aug 31, 2012 10:55 am




Posts: 3296
Joined: Thu May 12, 2011 11:58 pm
Post Re: small fixes
mparisi wrote:
I think you've introduced another bug, however. The "-" key doesn't seem to work any more for entering negative numbers.

Different keyboards produce different "key codes" for keys like '-', '=' etc.

I'll send you e-mail with a link to a test page where you can see which code your '-' key produces
(I can then add it to the list of codes for the '-' key..)

Patrick


Profile
User avatar

Posted on: Fri Aug 31, 2012 5:17 pm




Posts: 3296
Joined: Thu May 12, 2011 11:58 pm
Post Re: small fixes
pnm wrote:
Different keyboards produce different "key codes" for keys like '-', '=' etc.

In this case, it turns out different browsers produce different keycodes
for the same key :-(

See for example:
http://www.javascripter.net/faq/keycodes.htm

About halfway down the page it lists 109 as the keycode for "-" in Firefox and Opera,
and 189 as the keycode for the same key in IE, Safari, and Chrome.

Both these codes are caught by my software. Now it seems the keycode for "-" has
changed to 173 for Firefox (?!) (also on my keyboard (!)).

In any case, I added 173, so the regular "-" key should work again now...

Patrick


Edit: other people have run into the same problem:
https://github.com/openlayers/openlayers/issues/605

Not sure yet if the change was intentional.


Profile
Display posts from previous:  Sort by  
Reply to topic   [ 22 posts ]  Go to page Previous  1, 2, 3

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
All forum contents © Patrick Min, and by the post authors.

Forum software phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.