Closed
Bug 702688
Opened 14 years ago
Closed 14 years ago
Search key on awesomebar screen should dismiss it
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: lucasr, Assigned: lucasr)
Details
(Whiteboard: [parity-stock])
Attachments
(1 file)
|
1.77 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
In terms of using search key, I think the strictly correct behaviour would be:
1. While on primary browser UI, if you press Search key, it will take you to AwesomeBar screen (already done).
2. While on AwesomeBar screen, if you press Search key, it will take you back to primary browser UI.
See bug 697178 for discussion.
Updated•14 years ago
|
Whiteboard: [parity-stock]
| Assignee | ||
Comment 1•14 years ago
|
||
Attachment #574863 -
Flags: review?(mark.finkle)
Comment 2•14 years ago
|
||
Comment on attachment 574863 [details] [diff] [review]
Search key on awesomebar screen should dismiss it
> @Override
> public boolean onKeyDown(int keyCode, KeyEvent event) {
>+ keyCode == KeyEvent.KEYCODE_MENU ||
>+ keyCode == KeyEvent.KEYCODE_SEARCH ||
You are checking for the MENU here in case it is treated as a search?
Attachment #574863 -
Flags: review?(mark.finkle) → review+
| Assignee | ||
Comment 3•14 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #2)
> Comment on attachment 574863 [details] [diff] [review] [diff] [details] [review]
> Search key on awesomebar screen should dismiss it
>
> > @Override
> > public boolean onKeyDown(int keyCode, KeyEvent event) {
>
> >+ keyCode == KeyEvent.KEYCODE_MENU ||
> >+ keyCode == KeyEvent.KEYCODE_SEARCH ||
>
> You are checking for the MENU here in case it is treated as a search?
Yes. If I don't do that, the search key (long press on menu key in Galaxy S) is never triggered. This shouldn't affect other devices in anyway.
Comment 4•14 years ago
|
||
(In reply to Lucas Rocha (:lucasr) from comment #3)
> Yes. If I don't do that, the search key (long press on menu key in Galaxy S)
> is never triggered. This shouldn't affect other devices in anyway.
OK. Sounds good.
| Assignee | ||
Comment 5•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 6•14 years ago
|
||
Verified fixed on:
Mozilla/5.0 (Android;Linux armv7l;rv:11.0a1)Gecko/20111117 Firefox/11.0a1 Fennec/11.0a1
Device: Galaxy S
OS: Android 2.2
Status: RESOLVED → VERIFIED
Updated•5 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
•