Propriedade inputType do evento de entrada
Exemplo
Retorna o tipo de entrada sobre o qual o evento foi:
function myFunction(event) {
var x = event.inputType;
}
Definição e uso
A inputType
propriedade retorna o tipo de alteração que foi feita pelo evento.
Valores possíveis:
"insertText""insertReplacementText"
"insertLineBreak"
"insertParagraph"
"insertOrderedList"
"insertUnorderedList"
"insertHorizontalRule"
"insertFromYank"
"insertFromDrop"
"insertFromPaste"
"insertTranspose"
"insertCompositionText"
"insertFromComposition"
"insertLink"
"deleteByComposition"
"deleteCompositionText"
"deleteWordBackward" "
"deleteWordForward"
"deleteSoftLineBackward"
"deleteSoftLineForward"
"deleteEntireSoftLine"
"deleteHardLineBackward"
"deleteHardLineForward"
"deleteByDrag"
"deleteByCut"
"deleteByContent"
"deleteContentBackward"
"deleteContentForward"
"historyUndo"
"historyRedo"
"formatBold"
"formatItalic"
"formatUnderline" "
formatStrikethrough " "
formatSuperscript"
"formatSubscript"
"formatJustifyFull"
"formatJustifyCenter"
"formatJustifyRight" "formatJustifyLeft"
"formatIndent"
"formatOutdent
" "
"formatRemove"
"formatSetBlockTextDirection"
"formatSetInlineTextDirection"
"formatBackColor"
"formatFontColor"
"formatFontName"
Suporte ao navegador
Property | |||||
---|---|---|---|---|---|
inputType | 60 | Not supported | Not supported | Yes | 47 |
Sintaxe
event.inputType
Detalhes técnicos
Valor de retorno: | Uma String, indicando que tipo de ação foi feita |
---|
Páginas relacionadas
Método Dom Document execCommand()