Browse Source

save some lines.

pull/4918/head
Dan Walmsley 6 years ago
parent
commit
f8eaca28e8
  1. 12
      src/Avalonia.Native/WindowImplBase.cs

12
src/Avalonia.Native/WindowImplBase.cs

@ -251,10 +251,8 @@ namespace Avalonia.Native
public bool RawTextInputEvent(uint timeStamp, string text) public bool RawTextInputEvent(uint timeStamp, string text)
{ {
if (_inputRoot is null) if (_inputRoot is null)
{
return false; return false;
}
Dispatcher.UIThread.RunJobs(DispatcherPriority.Input + 1); Dispatcher.UIThread.RunJobs(DispatcherPriority.Input + 1);
@ -267,10 +265,8 @@ namespace Avalonia.Native
public bool RawKeyEvent(AvnRawKeyEventType type, uint timeStamp, AvnInputModifiers modifiers, uint key) public bool RawKeyEvent(AvnRawKeyEventType type, uint timeStamp, AvnInputModifiers modifiers, uint key)
{ {
if (_inputRoot is null) if (_inputRoot is null)
{
return false; return false;
}
Dispatcher.UIThread.RunJobs(DispatcherPriority.Input + 1); Dispatcher.UIThread.RunJobs(DispatcherPriority.Input + 1);
@ -288,10 +284,8 @@ namespace Avalonia.Native
public void RawMouseEvent(AvnRawMouseEventType type, uint timeStamp, AvnInputModifiers modifiers, AvnPoint point, AvnVector delta) public void RawMouseEvent(AvnRawMouseEventType type, uint timeStamp, AvnInputModifiers modifiers, AvnPoint point, AvnVector delta)
{ {
if (_inputRoot is null) if (_inputRoot is null)
{
return; return;
}
Dispatcher.UIThread.RunJobs(DispatcherPriority.Input + 1); Dispatcher.UIThread.RunJobs(DispatcherPriority.Input + 1);

Loading…
Cancel
Save