Simulator - Pressing ENTER in the menu sends KEY_ENTER to device

Environment: CIQ SDK 3.0.6, CIQ Plugin 3.0.4, Windows 10

Minor issue in the simulator I found a while back. Pressing ENTER to select an item in the simulator application menu will also send KEY_ENTER to the device.

Not a huge deal, but it surprised me during testing a few times.

Recreation procedure:

1) Build a simple datafield that simply displays ActivityInfo.timerTime
2) Run the app
3) Highlight, but don't select Settings > Vibrate in the simulator menu
4) Press ENTER.
The setting will be toggled, but the activity timer state will also be toggled
  • Which target(s)?

    Menu or Menu2?

    Which delegate sees it? The one where the that pushed the menu, or the menu delegate?
  • Sorry jim_m_58, allow me to clarify: I am referring to the Simulator application menu, not the device menu.

    This can be seen in a datafield app which displays the timer. Open the simulator, select something Settings > Vibrate and press ENTER. Not only will the setting toggle, but the timer will start or stop.

    I had not done the full investigation, but I assumed KEY_ENTER is being sent, since a datafield doesn't handle it's own input/events. I just tested it with a device app and 4 (KEY_ENTER) is indeed the key that is being sent.

    I've seen it on: 935, 920XT, 645M, 235 and several other simulated devices. Due to the nature of the problem (simulator just doing what it normally does when you press ENTER, but at the wrong time), I didn't think it was important to specify the target.
  • Interesting. I will have to take a look at this. Did the same behavior happen with a device app? or did you just use the app to determine that KEY_ENTER is being sent?
  • Stephen.ConnectIQ Both. If you press enter in the sim menu while a widget or device app is running, it will do whatever it does when you normally press enter. But I added a println of the key code so I could be sure.

    I'm sure most of us never use the keyboard to access the sim menu (myself including), so that's why it's not noticeable. But there was a case when I wanted toggle some things quickly and that's how I discovered it.

    Interestingly (or not), if you press ESC in the menu, it just closes the menu, but doesn't send KEY_BACK like it normally would. I guess that's not so surprising.