Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Typeahead: Allow controlling selection trigger keys #5671

@christor

Description

@christor

Currently, typeahead treats either a Tab or Enter key as a trigger to select the currently-highlighted option. This is probably a sensible default for many use cases.

I have a particular use case where I'd like to make it so that a tab does not trigger selection, but instead simply moves to the next form field. For my use case, a simple typeahead-select-on-tab="false" or something similar would suffice.

A more general thought might be to allow arbitrary keys/combinations to trigger completion, or a callback function for determining this (something like typeahead-is-trigger-key="vm.isTriggerKey($event)").

Before I go off generating a pull request...Is there some support for something like that that already exists? Any thoughts on the idea? Implementation/naming?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions