Ctrl-Delete in JTextField

How can I get JTextFields to allow Ctrl-Delete and Ctrl-Backspace when editing text? In various other programs, these key combinations can delete an entire word in one go. From what I can tell, the default behaviour of a JTextField allows the user to use CTRL to jump over an entire word when using left and right keys, and to select an entire word when SHIFT is used too. However, deleting just doesn't work.

以上就是Ctrl-Delete in JTextField的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准