Skip to content

Commit

Permalink
Add ContextMenu.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 9, 2020
1 parent b4bb9a0 commit 0c9bfc6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 21 deletions.
3 changes: 3 additions & 0 deletions ScreenCast.Linux/Services/KeyboardMouseInputLinux.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ private string ConvertJavaScriptKeyToX11Key(string key)
case "ScrollLock":
keySym = "Scroll_Lock";
break;
case "ContextMenu":
keySym = "Menu";
break;
case " ":
keySym = "space";
break;
Expand Down
3 changes: 3 additions & 0 deletions ScreenCast.Win/Services/KeyboardMouseInputWin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ private VirtualKey ConvertJavaScriptKeyToVirtualKey(string key)
case "Meta":
keyCode = VirtualKey.LWIN;
break;
case "ContextMenu":
keyCode = VirtualKey.MENU;
break;
default:
keyCode = (VirtualKey)VkKeyScan(Convert.ToChar(key));
break;
Expand Down
6 changes: 2 additions & 4 deletions Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
.CaptureStartupErrors(true)
.ConfigureLogging((hostingContext, logging) =>
{
logging.ClearProviders();
logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
logging.AddConsole();
logging.AddDebug();
Expand All @@ -32,10 +33,7 @@ public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
{
if (OSUtils.IsWindows && enableEventLog)
{
logging.AddEventLog(settings => {
settings.LogName = "Remotely_Server";
settings.SourceName = "Remotely_Server";
});
logging.AddEventLog();
}
}
});
Expand Down
8 changes: 0 additions & 8 deletions Server/wwwroot/scripts/RemoteControl/RtcSession.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Server/wwwroot/scripts/RemoteControl/RtcSession.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions Server/wwwroot/scripts/RemoteControl/RtcSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,10 @@ export class RtcSession {
};
this.PeerConnection.onconnectionstatechange = function (ev) {
console.log("Connection state changed to " + this.connectionState);
if (this.connectionState != "connected") {
UI.ConnectionP2PIcon.style.display = "none";
UI.ConnectionRelayedIcon.style.display = "unset";
}
}

this.PeerConnection.oniceconnectionstatechange = function (ev) {
console.log("ICE connection state changed to " + this.iceConnectionState);
if (this.iceConnectionState != "connected") {
UI.ConnectionP2PIcon.style.display = "none";
UI.ConnectionRelayedIcon.style.display = "unset";
}
}
this.PeerConnection.onicecandidate = async (ev) => {
await Remotely.RCBrowserSockets.SendIceCandidate(ev.candidate);
Expand Down

0 comments on commit 0c9bfc6

Please sign in to comment.