JS-incorrect judgment of deletion events caused by input method

<input id="app"/>


$("-sharpapp").on("keydown",function(even){
    if(even.KeyCode==8){
        console.log("")
    }

})

as shown in the code above, an event will be triggered when I press delete backspace in the input box. But when I am typing in Chinese, pressing the backspace key will still trigger this event if I make a misspelling. how to solve it? I don"t want the event to be triggered by pressing backspace on the way to Chinese spelling.

solved, thank you. Please


chrome 70 does not reproduce


compositionstart, compositionend events. Do not use keydown directly

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e65f-2c43a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e65f-2c43a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?