mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-04-22 08:00:21 +00:00
Added enter keyboard action for grids
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user