Closed
Bug 877352
Opened 12 years ago
Closed 12 years ago
Defect - There's no way to dismiss the soft keyboard from Firefox Start
Categories
(Firefox for Metro Graveyard :: Firefox Start, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
Firefox 24
People
(Reporter: jimm, Assigned: jimm)
References
Details
(Whiteboard: feature=defect c=tbd u=tbd p=1 status=verified)
Attachments
(1 file, 2 obsolete files)
4.70 KB,
patch
|
rsilveira
:
review+
|
Details | Diff | Splinter Review |
str:
1) open tab / start page
2) tap on nav bar edit (keyboard comes up)
try to get rid of the keyboard by tapping on empty space, you can't.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → jmathies
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #755569 -
Flags: review?(rsilveira)
Comment 2•12 years ago
|
||
Hey Jim, what would you like to set the point estimate at?
Blocks: metrov1defect&change, metrov1it8
Flags: needinfo?(jmathies)
Priority: -- → P1
QA Contact: jbecerra
Summary: There's no way to dismiss the soft keyboard from Firefox Start → Defect - There's no way to dismiss the soft keyboard from Firefox Start
Whiteboard: feature=defect c=tbd u=tbd p=0
Updated•12 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•12 years ago
|
Whiteboard: feature=defect c=tbd u=tbd p=0 → feature=defect c=tbd u=tbd p=1
Updated•12 years ago
|
Flags: needinfo?(jmathies)
Updated•12 years ago
|
No longer blocks: metrov1defect&change
Comment 3•12 years ago
|
||
Comment on attachment 755569 [details] [diff] [review]
patch
Review of attachment 755569 [details] [diff] [review]:
-----------------------------------------------------------------
I'm concerned with relying on the class name to know if you should dismiss.
::: browser/metro/base/content/browser-ui.js
@@ +1489,5 @@
> this.hide(aURI);
> }
> },
>
> + hasClass: function hasClass(aClassString, aClassList) {
You can use classList instead: https://developer.mozilla.org/en-US/docs/Web/API/element.classList
@@ +1504,5 @@
> + // focus from the nav bar edit so the soft keyboard will hide.
> + let className = aEvent.originalTarget.className;
> + let classList = ["richgrid-grid",
> + "meta-section-title",
> + "scrollbox-innerbox"];
Checking for the classes seem very fragile. We could stop propagation when you click on a tile and always blur the textbox when we get here.
We could also use pointer-events: none on everything except the tiles and #start-container, then just check if the target is #start-container or stop propagation when clicking on the tile. This is more cumbersome though.
@@ +1506,5 @@
> + let classList = ["richgrid-grid",
> + "meta-section-title",
> + "scrollbox-innerbox"];
> + if (this.hasClass(aEvent.originalTarget.className, classList)) {
> + BrowserUI._edit.blur();
Not really part of this bug, but we also need to dismiss the context bar. If you don't want to handle this here I'll open another bug if it doesn't exist yet.
Attachment #755569 -
Flags: review?(rsilveira) → review-
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Rodrigo Silveira [:rsilveira] from comment #3)
> Checking for the classes seem very fragile. We could stop propagation when
> you click on a tile and always blur the textbox when we get here.
Yes I considered this, will take a shot at it. Making sure every click target in the grid stops propagation seemed fragile too though. But maybe there's a way to catch this generically. All we currently have are grid tiles and the titles afaik.
> Not really part of this bug, but we also need to dismiss the context bar. If
> you don't want to handle this here I'll open another bug if it doesn't exist
> yet.
I think we want this to stick around if items are selected in the grid, which is why it's visible?
Assignee | ||
Comment 5•12 years ago
|
||
This wasn't too bad. I left the title labels alone, so those bubble up and dismiss. The tiles are the only elements that trap at this point. Seems to work pretty well.
Attachment #755569 -
Attachment is obsolete: true
Attachment #755887 -
Flags: review?(rsilveira)
Assignee | ||
Comment 6•12 years ago
|
||
Slight improvement, add a method to BrowserUI for doing this.
Attachment #755887 -
Attachment is obsolete: true
Attachment #755887 -
Flags: review?(rsilveira)
Attachment #755910 -
Flags: review?(rsilveira)
Comment 7•12 years ago
|
||
Comment on attachment 755910 [details] [diff] [review]
fix v.3
Review of attachment 755910 [details] [diff] [review]:
-----------------------------------------------------------------
Looks great.
Attachment #755910 -
Flags: review?(rsilveira) → review+
Assignee | ||
Comment 8•12 years ago
|
||
Comment 9•12 years ago
|
||
(In reply to Jim Mathies [:jimm] from comment #4)
> > Not really part of this bug, but we also need to dismiss the context bar. If
> > you don't want to handle this here I'll open another bug if it doesn't exist
> > yet.
>
> I think we want this to stick around if items are selected in the grid,
> which is why it's visible?
Yes, I was looking at how windows 8 start behaves and an edge swipe from the top unselects all tiles and hides the context bar. The case that I think is more annoying is when you have an undo action button on the context bar because the only way to dismiss is to select something then unselect it.
I'll open a bug for this.
Comment 10•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
Comment 11•12 years ago
|
||
Tested on 2013-06-14 using the latest nightly built from http://hg.mozilla.org/mozilla-central/rev/b197bed90a98
- Tested using the steps in comment #0 and now I can consistently dismiss the soft keyboard from the Firefox Start page.
- Tested opening a new tab, focusing on the location bar, then tapping on an empty area in the Firefox Start page, and that dismissed the soft keyboard
- Tested focusing on the location bar, typing something with the soft keyboard, tapping on an empty area, dismissing the keyboard, tapping again on the location, bar and so on.
Status: RESOLVED → VERIFIED
Whiteboard: feature=defect c=tbd u=tbd p=1 → feature=defect c=tbd u=tbd p=1 status=verified
Comment 12•12 years ago
|
||
Went through the following "Defect" for iteration #9 testing without any issues. Used the following build:
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2013-06-25-03-12-38-mozilla-central/
- Went through the original issue from comment 0 without any issues
- Went through the test cases that have been added in comment 11 without any issues
- Ensured that sliding another application from the left hand side auto dismisses the OSK while on the awesome screen
- Tapping and focusing on the "Location Bar" and then tapping on a tile from "Top Sites" and ensuring that the OSK is dismissed as a new tab is created
- Tapping and focusing on the "Location Bar" and then tapping on a tile from "Bookmarks" and ensuring that the OSK is dismissed as a new tab is created
- Tapping and focusing on the "Location Bar" and then tapping on a tile from "Recent History" and ensuring that the OSK is dismissed as a new tab is created
Comment 13•11 years ago
|
||
Went through the following "Defect" for iteration #10 testing without any issues. Used the following build:
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2013-07-19-03-02-04-mozilla-central/
- Went through the original test case from comment 0 without any issues
- Went through the test cases added in comment 11 without any issues
- Went through the test cases added in comment 12 without any issues
Comment 14•11 years ago
|
||
User Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:26.0) Gecko/20100101 Firefox/26.0
Build ID: 20130807030216
Built from http://hg.mozilla.org/mozilla-central/rev/1fb5d14e8348
WFM
Tested on windows 8 using latest nightly for iteration-11. Followed steps provided in comment0 and got expected result.
Comment 15•11 years ago
|
||
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
Build ID: 20130816030205
Built from http://hg.mozilla.org/mozilla-central/rev/1ed5a88cd4d0
Didn't WFM
Tested on windows 8 using latest nightly for iteration-12. Followed steps provided in comment0 and I am still seeing same issue.
Comment 16•11 years ago
|
||
Went through the following "Defect" for iteration #15 testing without any issues. Used the following build:
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2013-10-02-03-02-01-mozilla-central/
- Went through the original test case from comment 0 without any issues
- Went through the test cases added in comment 11 without any issues
- Went through the test cases added in comment 12 without any issues
- Went through all of the above test cases in full & filled views without any issues
Updated•10 years ago
|
OS: Windows 8 Metro → Windows 8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•