cubing/wca-inspection — pull request #3 by jfly (2014-08-08 17:22:17+00:00)
Title: Firefox keyboard fixes, Chrome layout hacks, black is better than grey

A few things in here. Sorry for combining so many things into one pull request, but I don't have the time or inclination to learn git branching right now.

There's a tiny change to make the font color black, because firefox is apparently some dark grey by default.

This is a fix for #2 that got kind of ugly in order to avoid messing with the splash screen.

I also changed keyCode to which in the appropriate places so that firefox continues to work after the first start/stop. Apparently firefox sends a keyCode of 32 for keyup events, but *not* for keypress events, which was causing some hard to root cause behavior. Here's console.log-ing of the relevant key events and state machine changes. I haven't taken the time to think about the statemachine transitions to evaluate if they're reasonable or not.

```
# First start works
09:42:23.602 "keypress 0" wca-inspection.js:103
09:42:23.680 "keyup 32" wca-inspection.js:103
09:42:23.681 "up" wca-inspection.js:85
09:42:23.681 "state" "go" wca-inspection.js:92

# First stop works
09:42:29.613 "keypress 0" wca-inspection.js:103
09:42:29.668 "keyup 32" wca-inspection.js:103
09:42:29.668 "up" wca-inspection.js:85
09:42:29.668 "state" "stop" wca-inspection.js:92

# Subsequent attempted start fails gets us from stop -> ready,
# but we can't get out of the ready state
09:42:39.051 "keypress 0" wca-inspection.js:103
09:42:39.130 "keyup 32" wca-inspection.js:103
09:42:39.130 "up" wca-inspection.js:85
09:42:39.130 "state" "ready" wca-inspection.js:92
09:42:43.481 "keypress 0" wca-inspection.js:103
09:42:43.584 "keyup 32" wca-inspection.js:103
09:42:43.584 "up" wca-inspection.js:85
09:42:43.585 "state" "ready" wca-inspection.js:92
09:43:09.750 "keypress 0" wca-inspection.js:103
09:43:09.850 "keyup 18" wca-inspection.js:103
09:43:14.408 "keyup 87" wca-inspection.js:103
09:43:14.471 "keyup 17" wca-inspection.js:103
09:43:16.481 "keyup 16" wca-inspection.js:103
09:43:16.519 "keyup 17" wca-inspection.js:103
09:43:16.950 "keypress 0" wca-inspection.js:103
09:43:17.013 "keyup 68" wca-inspection.js:103
```