drawk-cab / slides

Pared down presentations.
0 stars 0 forks source link

"+" and "-" keys don't work #5

Open apt1002 opened 9 years ago

apt1002 commented 9 years ago

I think pressing "+" and "-" on my keyboard is supposed to do the same thing as the "+" and "-" buttons in the overview. The latter do something, but the former seem to do nothing.

Chromium version 37.0.2062.120 Ubuntu 12.04 (281580) (64-bit).

drawk-cab commented 9 years ago

Hm that is bad. it makes the whole 'do it live' thing unusable. I guess your browser is reporting different key codes or something :(

Currently it looks for '173' and '109' for minus and '61' and '107' for plus, because that's what firefox reports.

Is there a difference using the "+" and "-" on the keypad vs. the ones by backspace?

drawk-cab commented 9 years ago

Updated the code in 0.9.1 to use events that yield ascii codes and added page down/up as a fallback. This means listening for both onkeydown and onkeypressed since browser key detection is such a train wreck.