mirror of
https://github.com/GittyMac/OpenFK.git
synced 2026-04-19 07:27:22 -05:00
Simplified the right click code
This commit is contained in:
parent
7b24e82866
commit
eeff9e8ae0
|
|
@ -14,10 +14,7 @@ namespace OpenFK
|
|||
{
|
||||
if(m.Msg == 0x204) //If it's a right click.
|
||||
{
|
||||
if(ModifierKeys.HasFlag(Keys.Control)) //If control is held down
|
||||
{
|
||||
}
|
||||
else
|
||||
if(!ModifierKeys.HasFlag(Keys.Control)) //If control is not held down | If it is, the context menu will show
|
||||
{
|
||||
this.SetVariable("msg", @"<rightclick x=""" + Cursor.Position.X + @""" y=""" + Cursor.Position.Y + @""" />"); //Sends right click command to flash.
|
||||
m.Result = IntPtr.Zero; //Blocks context menu from showing
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user