I am trying to capture the arrow keys when using IME, however the WM_IME_KEYDOWN doesn't seem to capture the arrows. I tried with WM_IME_COMPOSITION which do happen when pressing an arrow but I could not see which arrow was pressed.
protected override void WndProc(ref Message m){
if (m.Msg == WM_IME_KEYDOWN) {
DoStuff();
}
}
Know how?
You can use low level keyboard hook instead.
Take a look here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.