Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
fixes #393 - Properly selects all of the text in the URLBar on focus (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
boek authored Aug 31, 2017
1 parent 6a2d05f commit 7d50808
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Blockzilla/URLBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -565,13 +565,17 @@ class URLBar: UIView {

extension URLBar: AutocompleteTextFieldDelegate {
func autocompleteTextFieldShouldBeginEditing(_ autocompleteTextField: AutocompleteTextField) -> Bool {

autocompleteTextField.highlightAll()

if !isEditing && inBrowsingMode {
present()
delegate?.urlBarDidActivate(self)
} else {
shouldPresent = true
}


return true
}

Expand Down

0 comments on commit 7d50808

Please sign in to comment.