From 9681ce8a1e4881cfb25a8c647ac448a7093400d2 Mon Sep 17 00:00:00 2001 From: Sean Massa Date: Thu, 30 Apr 2015 10:40:58 -0500 Subject: [PATCH] add code fences around ascii charts in text_support.js The [rendered docs](http://emberjs.com/api/classes/Ember.TextSupport.html) do not show these charts properly. I added code fences around them. If there is some better way to address this, feel free to let me know or just close this PR and updated it yourself. No worries. --- packages/ember-views/lib/mixins/text_support.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/ember-views/lib/mixins/text_support.js b/packages/ember-views/lib/mixins/text_support.js index a25dca599ab..75b5aff0432 100644 --- a/packages/ember-views/lib/mixins/text_support.js +++ b/packages/ember-views/lib/mixins/text_support.js @@ -42,6 +42,7 @@ import TargetActionSupport from "ember-runtime/mixins/target_action_support"; The following chart is a visual representation of what takes place when the escape key is pressed in this scenario: + ``` The Template +---------------------------+ | | @@ -66,6 +67,7 @@ import TargetActionSupport from "ember-runtime/mixins/target_action_support"; | } | | | +-------------------------------------------+ + ``` Here are the events that we currently support along with the name of the attribute you would need to use on your field. To reiterate, you would use the @@ -75,6 +77,7 @@ import TargetActionSupport from "ember-runtime/mixins/target_action_support"; {{input attribute-name='controllerAction'}} ``` + ``` +--------------------+----------------+ | | | | event | attribute name | @@ -95,6 +98,7 @@ import TargetActionSupport from "ember-runtime/mixins/target_action_support"; | | | | keydown | key-down | +--------------------+----------------+ + ``` @class TextSupport @namespace Ember