Skip to content

Commit

Permalink
Merge pull request unoplatform#15931 from ramezgerges/previewkey_skia
Browse files Browse the repository at this point in the history
feat: add support for PreviewKey<Down|Up> on skia
  • Loading branch information
ramezgerges authored Apr 18, 2024
2 parents d845d90 + 2439283 commit e0fdfd1
Show file tree
Hide file tree
Showing 8 changed files with 585 additions and 201 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,19 @@ private void SetupEvent(FrameworkElement elt)
global::System.Diagnostics.Debug.WriteLine($"{elt.Name} - [KEYUP] {e.Key}");
_output.Text += $"{elt.Name} - [KEYUP] {e.Key}\r\n";
};
#if __WASM__

elt.PreviewKeyDown += (snd, e) =>
{
Console.WriteLine($"{elt.Name} - [PREVIEWKEYDOWN] {e.Key}");
global::System.Diagnostics.Debug.WriteLine($"{elt.Name} - [PREVIEWKEYDOWN] {e.Key}");
_output.Text += $"{elt.Name} - [PREVIEWKEYDOWN] {e.Key}\r\n";
};

elt.PreviewKeyUp += (snd, e) =>
{
Console.WriteLine($"{elt.Name} - [PREVIEWKEYUP] {e.Key}");
global::System.Diagnostics.Debug.WriteLine($"{elt.Name} - [PREVIEWKEYUP] {e.Key}");
_output.Text += $"{elt.Name} - [PREVIEWKEYUP] {e.Key}\r\n";
};
#endif
}

private void SetupEvent(CoreWindow window)
Expand Down
Loading

0 comments on commit e0fdfd1

Please sign in to comment.