How can I disable all keyboard keys?

后端 未结 4 693
你的背包
你的背包 2021-01-12 09:14

I am searching for a possibility to disable all keyboard keys in a textarea. I found some examples on the web to disable some single ones but how can I disable the whole key

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-12 10:03

    use the readonly attribute if you want to make sure that your user can still click and select inside of the textarea