Skip to content

Pressing moveDown/moveUp changes selection when suggestion window is not visible #6

@xhruso00

Description

@xhruso00

When textfield is firstResponder and suggestion window is not visible -> selection changes. Safari/Finder ignore the event. Chrome opens suggestions.

func control(_ control: NSControl, textView: NSTextView, doCommandBy commandSelector: Selector) -> Bool {
    if commandSelector == #selector(NSResponder.moveUp(_:)) {
        // Move up in the suggested selections list
        suggestionsWindowController?.moveUp(textView)
        return true
    }
    if commandSelector == #selector(NSResponder.moveDown(_:)) {
        // Move down in the suggested selections list
        suggestionsWindowController?.moveDown(textView)
        return true
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions