cleaner version

This commit is contained in:
Philip Rosedale 2014-11-20 22:53:49 -06:00
parent 069f1be89d
commit 5d6d9ae0df

View file

@ -10,8 +10,7 @@
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
function keyPressEvent(event) { Controller.keyPressEvent.connect(function (event) {
// if our tools are off, then don't do anything
if (event.text == "1") { if (event.text == "1") {
Window.location = "hifi://starchamber"; Window.location = "hifi://starchamber";
} else if (event.text == "2") { } else if (event.text == "2") {
@ -25,5 +24,4 @@ function keyPressEvent(event) {
} else if (event.text == "6") { } else if (event.text == "6") {
Window.location = "hifi://hoo"; Window.location = "hifi://hoo";
} }
} });
Controller.keyPressEvent.connect(keyPressEvent);