mirror of
https://github.com/cyanfish/naps2.git
synced 2024-10-05 20:07:42 +03:00
Mac: Remove mouse check for key events
This commit is contained in:
parent
c3e2ae0333
commit
d41e9f0046
@ -148,8 +148,7 @@ public class MacEtoPlatform : EtoPlatform
|
||||
var view = control.ToNative();
|
||||
var monitor = NSEvent.AddLocalMonitorForEventsMatchingMask(NSEventMask.KeyDown, evt =>
|
||||
{
|
||||
if (ReferenceEquals(evt.Window, view.Window) &&
|
||||
view.HitTest(evt.LocationInWindow) != null!)
|
||||
if (ReferenceEquals(evt.Window, view.Window))
|
||||
{
|
||||
var args = evt.ToEtoKeyEventArgs();
|
||||
return handle(args.KeyData) ? null! : evt;
|
||||
|
Loading…
Reference in New Issue
Block a user