How to differentiate typing text from pressing a shortcut

142 views Asked by At

I'm trying to do some research on user activity with the app. I have found a way of making a special log module (combined with PRISM) which would use the EventManager.RegisterClassHandler static method.

My question is - how would you differentiate typing text from pressing a shortcut? In US it's a little bit easier, because Ctrl+(any letter) doesn't give you any "extension" of alphabet. So just checking if Ctrl is pressed would not work. Probably a timer or DateTime which registers time of key-press event?

Maybe I should subscribe to TextBox.TextInput and ignore the keys from KeyDown if this event is being raised?

0

There are 0 answers