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;
|
||||
}
|
||||
#backIcon {
|
||||
width: 32px;
|
||||
height: 24px;
|
||||
position: fixed;
|
||||
top: 16px;
|
||||
left: 28px;
|
||||
}
|
||||
#backIcon:hover {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user