Hi,Our barcode scanner application is written in C++ eMbedded V 4.00 and works well on the Motorola MC50 WM5 where the ENTER key is interpreted as an IDOK. We are moving the app to the MC55 with WM6.1 and the ENTER key does not translate to an IDOK. I'm of the impression we will have to programatically trap the key entry (or the value passed on via DataWedge). I have made several attempts to implement either a HOTKEY or something via an Accelerator Table but have been unable to interpret the Microsoft on-line descriptions. If there is a simpler answer that would be good news. If not, a more specific example than the MS samples would be greatly appreciated. Thanks in advance.
+1
A:
Did you try to see what VK_ virtual key constant is mapped to the key you are trying ? IDOK is commonly used as the ID of dialog response, so there is really no association between IDOK/IDCANCEL/etc and some key.
If you want to 'listen' for ENTER or RETURN you should check VK_ENTER, VK_RETURN as virtual keys.
Hernán
2010-05-21 20:38:50