How to distinguish text input from clicking a shortcut

I'm trying to do some research on user activity with an application. I found a way to create a special log module (in combination with PRISM) that will use the static method EventManager.RegisterClassHandler.

My question is , how would you distinguish text input when you click a shortcut? In the USA, this is a little easier, because Ctrl + (any letter) does not give you any "extension" of the alphabet. Therefore, just checking if the Ctrl key combination is pressed will not work. Probably a timer or a DateTime that records the time of a keystroke event?

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

+5
source share

Source: https://habr.com/ru/post/1247871/


All Articles