question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do I get key events?

See original GitHub issue

I have the following to collect keyboard from the window, but it’s now working.

CoreWindow.KeyDown += CoreWindow_KeyDown;

How do I collect input?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Felix-Devcommented, May 21, 2020

@Gavin-Williams This sounds like something Project Reunion can help with (by providing a similar CoreWindow implementation for Win32 apps). Alternatively, the new WinUI 3 Window class (which abstracts both a CoreWindow for UWP apps and a HWND for win32 apps) could expose events like KeyDown so you can use the same code for your WinUI UWP and WinUI Desktop apps. The spec is still in the early stages and will continue to be fleshed out.

0reactions
Gavin-Williamscommented, May 21, 2020

@Felix-Dev OK. Thanks for highlighting all that for me. Good to know. In the mean time, I’ll have to dig into the preview and see what I can work out. Or perhaps just wait until November.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KeyboardEvent - Web APIs | MDN
There are three types of keyboard events: keydown , keypress , and keyup . For most keys, Gecko dispatches a sequence of key...
Read more >
Keyboard Events
The KeyboardEvent Object handles events that occur when a user presses a key on the keyboard. ... code, The code of the key...
Read more >
Introduction to Keyboard Events in JavaScript
There are three keyboard events, namely keydown , keypress , and keyup . Keyboard events belong to the KeyboardEvent object.
Read more >
JavaScript Keyboard Events Explained
In this tutorial, you will learn how to work with JavaScript keyboard events including the keydown, keypress, and keyup events.
Read more >
Keyboard: keydown and keyup
Pressing a key always generates a keyboard event, be it symbol keys or special keys like Shift or Ctrl and so on. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found