Browse Source

save some lines.

Dan Walmsley 5 years ago
parent
commit
f8eaca28e8
1 changed files with 3 additions and 9 deletions
  1. 3 9
      src/Avalonia.Native/WindowImplBase.cs

+ 3 - 9
src/Avalonia.Native/WindowImplBase.cs

@@ -251,10 +251,8 @@ namespace Avalonia.Native
 
         public bool RawTextInputEvent(uint timeStamp, string text)
         {
-            if (_inputRoot is null)
-            {
+            if (_inputRoot is null) 
                 return false;
-            }
             
             Dispatcher.UIThread.RunJobs(DispatcherPriority.Input + 1);
 
@@ -267,10 +265,8 @@ namespace Avalonia.Native
 
         public bool RawKeyEvent(AvnRawKeyEventType type, uint timeStamp, AvnInputModifiers modifiers, uint key)
         {
-            if (_inputRoot is null)
-            {
+            if (_inputRoot is null) 
                 return false;
-            }
             
             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)
         {
-            if (_inputRoot is null)
-            {
+            if (_inputRoot is null) 
                 return;
-            }
             
             Dispatcher.UIThread.RunJobs(DispatcherPriority.Input + 1);