質問編集履歴
1
追記
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            <div contentEditable="true" onkeydown="alert('')">div</div>
         | 
| 1 | 
            +
            <div contentEditable="true" onkeydown=" if (event.key === 'Enter'){alert('')}">div</div>
         | 
| 2 2 |  | 
| 3 3 | 
             
            onkeydownをコンソールから実行させたいです
         | 
| 4 4 | 
             
            実際にはキーボードを押していないがonkeydownを発生させる(解釈させる)方法を知りたいです
         | 
