Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I determine which keyboard a key pressed is on?

Tags:

wpf

keyboard

Users of my application have a second keyboard with special function keys. Unfortunately, the keys are mapped to buttons such as F, G, F1 and so on. I would like to handle PreviewKeyDown and prevent any keys from these keyboards having an effect in normal controls such as TextBoxes.

In WPF, is there any way of determining which keyboard raised the event?

like image 752
James L Avatar asked Nov 27 '22 16:11

James L


1 Answers

No, it is not possible directly in WPF.

like image 87
James L Avatar answered Nov 29 '22 04:11

James L