11-14-2012 04:43 PM
I'm seeing a behavior which I think should be handled by the WebWorks framework rather then by each application. My application (OS 6,7) is registering a listener for a hardware button (menu, back, etc.) via blackberry.system.event.onHardwareKey. The issue I'm seeing happens when the screen locks. If the user presses a physical button when the screen is locked my button listener gets notified and the screen wakes up with a toast that informs the user to unlock the device.
I feel like the button listener should not get notified of a button press if the button press occurred while the screen was locked. Seems to me the framework should be managing this and only notifying the application of button presses when the screen is not locked.
Here's some simple code to exhibit the issue: