Remove popup suggestions when Backspacing to nothing #534
Comments
Not quite sure what event to look for. I tried from "input" where urlbar.value does indeed return "". But calling popupOpen is true and calling closePopup() does close it.. but it seems like something else is re-opening. |
This listener is bringing back the popup listen(window, gURLBar.parentNode, "keypress", function(event) {
}); But in this function there is no way to detect if the current keypress (delete or backspace) is going to make the urlbar value to null. |
the guaranteed way I think is to check if cursor is at beginning while pressing delete for last char , and the cursor is at end while pressing backspace for last char |
How does that guarantee correctness when deleting a selection? |
The fact that making a selection already remove the popup. |
How did you test this? It doesn't seem to close the popup suggestions for me. |
sorry , there were some spelling mistakes , I fixed it at my patch-8 branch |
With speakwords, when we are pressing backspace and then there is nothing left in the urlbar , the awesomebar popup still shows the suggestion based on the last left character.
type "firef" , popup shows suggestions for firefox , start pressing backspace till nothing is left , , awesome bar still shows suggestion for sites/urls/title containing "f"
The text was updated successfully, but these errors were encountered: