diff --git a/static/css/style.css b/static/css/style.css index 0c87cfb..f2a1a82 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -105,10 +105,7 @@ main { padding:25px; } #backIcon { - width: 32px; - height: 24px; position: fixed; - top: 16px; left: 28px; } #backIcon:hover { diff --git a/static/js/index.js b/static/js/index.js index 12c16d2..12793dd 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -348,6 +348,11 @@ function addHostToGrid(host, ismDNSDiscovered) { cell.click(function () { hostChosen(host); }); + outerDiv.keypress(function(e){ + if(e.keyCode == 13) { + hostChosen(host); + } + }); $(outerDiv).append(cell); if (!ismDNSDiscovered) { // we don't have the option to delete mDNS hosts. So don't show it to the user. @@ -439,6 +444,11 @@ function showApps(host) { $('#game-'+app.id).on('click', function () { startGame(host, app.id); }); + $('#game-'+app.id).keypress(function(e){ + if(e.keyCode == 13) { + startGame(host, app.id); + } + }); // apply CSS stylization to indicate whether the app is active stylizeBoxArt(host, app.id);