From 1e6b0e98d093ca9ce972b118762da148a89e25ae Mon Sep 17 00:00:00 2001 From: Jeff Date: Fri, 8 Nov 2019 10:50:36 -0800 Subject: [PATCH] add keycodes note --- docs/guide/keydown.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/guide/keydown.md b/docs/guide/keydown.md index bdef0df..b353960 100644 --- a/docs/guide/keydown.md +++ b/docs/guide/keydown.md @@ -5,7 +5,7 @@ `selectOnKeyCodes {Array}` is an array of keyCodes that will trigger a typeAheadSelect. Any keyCodes in this array will prevent the default event action and trigger a typeahead select. By default, - it's just `[13]` for return. For example, maybe you want to tag on a comma keystroke + it's just `[13]` for return. For example, maybe you want to tag on a comma keystroke: @@ -29,6 +29,9 @@ By default, the prop is a no–op returning the same object `map` object it rece maps keyCodes to handlers: `{ : }`. Modifying this object can override default functionality, or add handlers for different keys that the component doesn't normally listen for. +Note that any keyCodes you've added to `selectOnKeyCodes` will be passed to `map-keydown` as well, +so `map-keydown` will always take precedence. + **Default Handlers** ```js