<div dir="ltr"><div>Okay good that was exactly my question.<br><br></div>It seems okay for me, I wait to have your patches reformatted to test and merge it :)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 14, 2014 at 1:18 PM, Mik Amchislavsky <span dir="ltr"><<a href="mailto:hailmikhail@gmail.com" target="_blank">hailmikhail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Geoffrey,<br><br></div>Thanks for asking. Now, I see room for improvement in a subsequent patch I sent during the past weekend. I'll apply the improvement in a future contribution.<br><br></div><div>Here, I'll address your question.<br></div><div><div><div><div><span class=""><div><br>>>> Why don't you return <b>true</b> when the KeyEvent is handled?<br><br></div></span><div>Technically the dcb096606f3fd4a4a428c2ead70138eb7a644548 commit allows the MainActivity, onKeyDown to track the view ID with present focus within mFocusedPrior variable. Would the MainActivity onKeyDown event handler be triggered if keyListener returned true ?<br><br></div></div><div>Architecturally, mFocusedPrior offers some value as an indicator of a past onKey event. Before MainActivity calls mRootContainer.closeDrawer if mFocusedPrior != 0 MainActivity transfers focus to the ActionBar. <br><br></div>Regards,<br><br></div>Mik<br></div></div></div>
</blockquote></div><br></div>