Permalink
Browse files

BUG FIX:

Corrected check for modifier keys.

This should correct all previous issue with Windows Style COPY\CUT\PASTE (CTRL-C,CTRL-X,CTRL,CTRL-V)

Signed-off-by: thrilleratplay <thilleratplay@gmail.com>
  • Loading branch information...
1 parent a657243 commit 47688cb2033e59cfdbadee2db131722cbb492d13 thrilleratplay committed Mar 19, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 VncSharp/RemoteDesktop.cs
@@ -779,7 +779,7 @@ protected override bool IsInputKey(Keys keyData)
// ManageKeyDownAndKeyUp, OnKeyPress, OnKeyUp, OnKeyDown.
private void ManageKeyDownAndKeyUp(KeyEventArgs e, bool isDown)
{
- UInt32 keyChar;
+ UInt32 keyChar = (UInt32)e.KeyCode; //BUG FIX: Set default keyChar value in event of modifier key (ThrillerAtPlay)
bool isProcessed = true;
switch(e.KeyCode)
{
@@ -823,8 +823,11 @@ private void ManageKeyDownAndKeyUp(KeyEventArgs e, bool isDown)
keyChar = 0x0000FFBE + ((UInt32)e.KeyCode - (UInt32)Keys.F1);
break;
default:
- keyChar = 0;
- isProcessed = false;
+ if (!e.Alt && !e.Control) //BUG FIX: Correctly account for modifier key (ThrillerAtPlay)
+ {
+ keyChar = 0;
+ isProcessed = false;
+ }
break;
}

0 comments on commit 47688cb

Please sign in to comment.