src/devices/keyboard.js
function _inputChar(char) {
    if(_charIsPrintable(char.charCodeAt(0))
      &&utils.isSelectable(document.activeElement)) {
      // add the char
      // FIXME: put at caretPosition/replace selected content
      document.activeElement.value += char;
      // fire an input event
      utils.dispatch(document.activeElement, {type: 'input'});
    }
  }
function _inputChar(char) {
    if(_charIsPrintable(char.charCodeAt(0))
      &&utils.isSelectable(document.activeElement)) {
      // add the char
      // FIXME: put at caretPosition/replace selected content
      document.activeElement.value += char;
      // fire an input event
      utils.dispatch(document.activeElement, {type: 'input'});
    }
  }
function _inputChar ( char ) { if ( _charIsPrintable ( char . charCodeAt ( 0 ) ) && utils . isSelectable ( document . activeElement ) ) { // add the char // FIXME: put at caretPosition/replace selected content document . activeElement . value += char ; // fire an input event utils . dispatch ( document . activeElement , { type : 'input' } ) ; } }
Try to add the char corresponding to the key to the activeElement
Try to add the char corresponding to the key to the activeElement