I've attached the KeyDown
event to a ListView
in my Win 10 UWP app. I want to make VirtualKey.Enter
have a special effect, but the event is not firing for this particular key. Neither does it for Space, Arrow up or down. This I guess because the listview already has defined a special behaviour for those keys.
I'd like to override some of those keys though, or at least trigger additional actions. Even attaching events to those key with modifiers (e.g. Shift+ArrowDown) would not work because the events still are not firing.
I read that for WPF that there is a PreviewKeyDown
-event which one can attach to. I can't find that event for UWP though. Are there any other options?