mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Added enter keyboard action for grids
This commit is contained in:
parent
8689032369
commit
8e601a9577
@ -105,10 +105,7 @@ main {
|
|||||||
padding:25px;
|
padding:25px;
|
||||||
}
|
}
|
||||||
#backIcon {
|
#backIcon {
|
||||||
width: 32px;
|
|
||||||
height: 24px;
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 16px;
|
|
||||||
left: 28px;
|
left: 28px;
|
||||||
}
|
}
|
||||||
#backIcon:hover {
|
#backIcon:hover {
|
||||||
|
@ -348,6 +348,11 @@ function addHostToGrid(host, ismDNSDiscovered) {
|
|||||||
cell.click(function () {
|
cell.click(function () {
|
||||||
hostChosen(host);
|
hostChosen(host);
|
||||||
});
|
});
|
||||||
|
outerDiv.keypress(function(e){
|
||||||
|
if(e.keyCode == 13) {
|
||||||
|
hostChosen(host);
|
||||||
|
}
|
||||||
|
});
|
||||||
$(outerDiv).append(cell);
|
$(outerDiv).append(cell);
|
||||||
if (!ismDNSDiscovered) {
|
if (!ismDNSDiscovered) {
|
||||||
// we don't have the option to delete mDNS hosts. So don't show it to the user.
|
// 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 () {
|
$('#game-'+app.id).on('click', function () {
|
||||||
startGame(host, app.id);
|
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
|
// apply CSS stylization to indicate whether the app is active
|
||||||
stylizeBoxArt(host, app.id);
|
stylizeBoxArt(host, app.id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user