Added backspace and Alt, Shift, Ctrl to the remote keyboard

This commit is contained in:
lukeIam committed 2014-11-11 22:05:43 +01:00
1 parent 53153774b7
commit e10de6ca0e
8 files changed
+86 -31

No files matched your search

+2 -2
View File
@@ -58,7 +58,7 @@ namespace ServerLib
CServer.SendKeyEvent(key);
}
public void SendKeyStringEvent(string keyString)
public void SendKeyStringEvent(string keyString, bool isShiftPressed = false, bool isAltPressed = false, bool isCtrlPressed = false)
{
if (!_CheckRight(EUserRights.UseKeyboard))
return;
@@ -72,7 +72,7 @@ namespace ServerLib
}
}
else
CServer.SendKeyStringEvent(keyString);
CServer.SendKeyStringEvent(keyString, isShiftPressed, isAltPressed, isCtrlPressed);
}
#region profile
+1 -1
View File
@@ -26,7 +26,7 @@ using System.Text.RegularExpressions;
namespace ServerLib
{
public delegate bool SendKeyEventDelegate(string key);
public delegate bool SendKeyStringEventDelegate(string keyString);
public delegate bool SendKeyStringEventDelegate(string keyString, bool isShiftPressed , bool isAltPressed , bool isCtrlPressed);
#region profile
public delegate SProfileData GetProfileDataDelegate(int profileId, bool isReadonly);
+2 -2
View File
@@ -32,8 +32,8 @@ namespace ServerLib
[OperationContract, WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Json,
UriTemplate = "/sendKeyStringEvent?keyString={keyString}")]
void SendKeyStringEvent(string keyString);
UriTemplate = "/sendKeyStringEvent?keyString={keyString}&shift={isShiftPressed}&alt={isAltPressed}&ctrl={isCtrlPressed}")]
void SendKeyStringEvent(string keyString, bool isShiftPressed = false, bool isAltPressed = false, bool isCtrlPressed = false);
#region profile
[OperationContract, WebInvoke(Method = "GET",