Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[x/tour] tour: fix pageup/pagedown navigation on non-chrome browsers
FF and IE fail to populate event.keyCode, but instead populate event.which with the key code. event.key is a DOMString of "PageUp" or "PageDown" in this case, so remove the invalid comparision to a numeric key code and instead compare the keycode to event.which. Fixes golang/go#8829 Change-Id: I7192d2e561e2be5472018d8a3b06a91ab9dab49b Reviewed-on: https://go-review.googlesource.com/15001 Reviewed-by: Andrew Gerrand <adg@golang.org> X-Tour-Commit: aef6c802ede697bfc71a740ccd720cc12c6de29b
- Loading branch information