KeyPress 只會回傳Key ,也就是按鍵名稱,如果取KeyCode 只會return 0. KeyDown 兩者都會回傳. 按Enter 的時候KeyDown 的e.key 是Enter , e.
確定! 回上一頁