Closed
Bug 1132417
Opened 9 years ago
Closed 8 years ago
Capturing volume-up button press does not work
Categories
(Firefox for Android Graveyard :: Web Apps (PWAs), defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: felix.klee, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0 Build ID: 20150211004833 Steps to reproduce: On Firefox OS 2.2, it is possible to capture volume button presses from an app. To see if that also works in Firefox for Android, I installed the latest nightly: https://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/latest-mozilla-central-android-api-11/fennec-38.0a1.multi.android-arm.apk From Firefox Developer Edition on my PC, I remote debugged my privileged app Trigger: https://marketplace.firefox.com/app/trigger Before pressing the volume-up button, I ran in the console: (function () { 'use strict'; var keyDownHandler = function (evt) { if (evt.key === 'VolumeDown') { console.log('down'); } else if (evt.key === 'VolumeUp') { console.log('up'); } evt.preventDefault(); }; window.addEventListener('keydown', keyDownHandler); }()); Actual results: Pressing the volume-up button increased the system volume. The button press was not registered by the above code, i.e. there was no output on the console. Expected results: 'up' output to the console.
Reporter | ||
Updated•9 years ago
|
OS: Windows 7 → Android
Hardware: x86_64 → ARM
Updated•9 years ago
|
Component: General → Web Apps
QA Contact: aaron.train
Updated•9 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 1•9 years ago
|
||
I found out that capturing volume buttons doesn't work anymore with Gecko 39 on Firefox OS (https://bugzilla.mozilla.org/show_bug.cgi?id=1138745). It works with version 37, though. So I installed fennec-37.0a2.multi.android-arm.apk on my Android device. However, capturing the volume buttons still doesn't work.
Reporter | ||
Comment 2•9 years ago
|
||
Note that on Android volume buttons have different key codes: https://bugzilla.mozilla.org/show_bug.cgi?id=1138918
Comment 3•8 years ago
|
||
Per bug 1235869, we're going to disable the Android web runtime, so we won't fix this bug in it. (This is part of a bulk resolution of bugs in the Firefox for Android::Web Apps component, from which I attempted to exclude bugs that are not specific to the runtime, but it's possible that I included one accidentally. If so, I'm sorry, and please reopen the bug!)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•