ARC++ apps can't get volume-up/down keys |
||
Issue descriptionChrome Version: 71.0.3578.57 OS: ChromeOS What steps will reproduce the problem? (1) install Kindle, open it (2) go "more" > "settings", and enable "volume buttons control" (3) open a book (4) press volume up or down key What is the expected result? - page moves according to the volume button What happens instead? - volume changes on OS Please use labels and text to provide additional information. If this is a regression (i.e., worked before), please consider using the bisect tool (https://www.chromium.org/developers/bisect-builds-py) to help us identify the root cause and more rapidly triage the issue. For graphics-related bugs, please copy/paste the contents of the about:gpu page at the end of this report.
,
Dec 4
(Mukai pointed out the slate has the volume buttons. They didn't respond at all on my device... Until I rebooted it. And now I confirmed these on-device keys don't work on Kindle either.)
,
Dec 4
omakoto: Are volume-up/down keys intercepted by Kindle app? so device volume doesn't change while Kindle app opens on Android phone? The ARC++ app windows don't have kCanConsumeSystemKeysKey property, so system keys are intercepted by PreTargetAcceleratorHandler before exo::Keyboard processes it. We may want to add the property to the ARC++ app windows. We already have a mechanism to fall back keys not handled by ARC++ apps to Chrome's accelerator handler, so it's okay to pass keys to ARC++ apps before Chrome's accelerator handler consumes it.
,
Dec 4
> We already have a mechanism to fall back keys not handled by ARC++ apps t... That may not be true. IIRC, there was an app that consumed all keys even though they don't handle it. Is there an API to intercept power key?
,
Dec 4
@yhanada yes, Kindle has an option for that. Note it only happens when you're reading a book and kindle is in full-screen. When you're browsing books, for example, the vol keys won't be intercepted. Play Books has the same option too. |
||
►
Sign in to add a comment |
||
Comment 1 by omakoto@google.com
, Dec 4