Skip to content

Commit

Permalink
Fix some bugs with autocomplete suggestions (#3786)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/1201048563534612/1209218704563233/f

## Description

Fixes some issues with autofill suggestions.
  • Loading branch information
diegoreymendez authored Jan 28, 2025
1 parent 5876983 commit 0c36e22
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions DuckDuckGo/NavigationBar/View/AddressBarTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ final class AddressBarTextField: NSTextField {
// flag when updating the Value from `handleTextDidChange()`
private var currentTextDidChangeEvent: TextDidChangeEventType = .none

// var subscriptionEnvironment: SubscriptionEnvironment {
// Application.appDelegate.subscriptionManager.currentEnvironment
// }

// MARK: - Lifecycle

override func awakeFromNib() {
Expand Down Expand Up @@ -1054,19 +1050,6 @@ extension AddressBarTextField: NSTextFieldDelegate {
suggestionContainerViewModel?.selectPreviousIfPossible()
return true

case #selector(NSResponder.deleteBackward(_:)),
#selector(NSResponder.deleteForward(_:)),
#selector(NSResponder.deleteToMark(_:)),
#selector(NSResponder.deleteWordForward(_:)),
#selector(NSResponder.deleteWordBackward(_:)),
#selector(NSResponder.deleteToEndOfLine(_:)),
#selector(NSResponder.deleteToEndOfParagraph(_:)),
#selector(NSResponder.deleteToBeginningOfLine(_:)),
#selector(NSResponder.deleteBackwardByDecomposingPreviousCharacter(_:)):

suggestionContainerViewModel?.clearSelection()
return false

default:
return false
}
Expand Down

0 comments on commit 0c36e22

Please sign in to comment.