gluonhq / substrate

Create native Java(FX) apps for desktop, mobile and embedded
GNU General Public License v2.0
390 stars 52 forks source link

[Android] KeyEvents from volume buttons shouldn't be consumed #1208

Closed jperedadnr closed 1 year ago

jperedadnr commented 1 year ago

Android MainActivity currently consumes all the events after passing them to the JavaFX layer. This applies to the volume (Up/Down) events from the volume buttons, which prevents from getting the system volume menu to show up and adjust the volume level accordingly. This implies that the event has to be managed from the JavaFX layer instead (sending a callback to Android to process the event).

See https://github.com/gluonhq/attach/pull/348/commits/f2025d84eefb2be939790a10f996d0a7a839f5d8 for reference.

Expected Behavior

Current Behavior

Steps to Reproduce

Your Environment