On Sep 3, 2013 9:39 PM, "Alive" <[email protected]> wrote:
> * What if the user app do |preventDefault()| ?
>   Shall we allow this usage for volumeup/volumedown, even for home and
sleep button?
>   Could we 'prevent' the preventDefault() call in this case?

This definitely depends on the button.

For home and sleep buttons we should absolutely not allow applications to
cancel the default behavior of the button. In fact, for those two I don't
even see a need to dispatch key events at all. Are there?

For volumeup/down, I think it would be OK for an app to call preventDefault
and that way prevent the volume from changing. But we should control that
ability through a permission so that the user can turn it off.

/ Jonas
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to