Simplified the right click code

This commit is contained in:
Lako 2020-12-18 22:08:39 -05:00
parent 7b24e82866
commit eeff9e8ae0

View File

@ -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