On Tue, Sep 17, 2013 at 2:13 AM, Alive <[email protected]> wrote: > Jonas Sicking <[email protected]> 於 2013/9/17 上午10:10 寫道: >> 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? > > Jonas, I am thinking that if we could dispatch hardware button event > directly via key{down,press,up} to system app, > we could remove the mozChromeEvent hack now used to dispatch HW button > events, and then let system app using home/power event directly. I recalled > that we would love to remove 'mozChromeEvent' usage as most as possible. And > this is one of the massive mozChomeEvent we're using now.
Just dispatching these keys to the system app, and never to content processes or other apps, sounds good to me. / Jonas _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
