mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +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 view = control.ToNative();
|
||||||
var monitor = NSEvent.AddLocalMonitorForEventsMatchingMask(NSEventMask.KeyDown, evt =>
|
var monitor = NSEvent.AddLocalMonitorForEventsMatchingMask(NSEventMask.KeyDown, evt =>
|
||||||
{
|
{
|
||||||
if (ReferenceEquals(evt.Window, view.Window) &&
|
if (ReferenceEquals(evt.Window, view.Window))
|
||||||
view.HitTest(evt.LocationInWindow) != null!)
|
|
||||||
{
|
{
|
||||||
var args = evt.ToEtoKeyEventArgs();
|
var args = evt.ToEtoKeyEventArgs();
|
||||||
return handle(args.KeyData) ? null! : evt;
|
return handle(args.KeyData) ? null! : evt;
|
||||||
|
Loading…
Reference in New Issue
Block a user