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