onKeyDown
handler to change the editor's content when we press a key.onKeyDown
handler:&
, keystrokes into the word and
upon being typed.onKeyDown
handler might look like this:&
, and you should see it suddenly become and
instead!event
object, and you can use your editor
to perform commands in response. Simple!