Click here to Skip to main content
15,912,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Writing my own textbox-thing here, and i want to add the control-backspace function because it is awesome. Sadly, there is no keyCode for Control-Backspace. How can i check if that combination is typed?
Posted
Comments
Richard MacCutchan 8-Mar-13 8:30am    
When you receive the backspace key, check to see if control is currently pressed.
ali_heidari_ 8-Mar-13 10:19am    
do you want to check if backspace pressed?

1 solution

try this...
Java
KeyStroke ks2 = KeyStroke.getKeyStroke(KeyEvent.VK_BACK_SPACE, InputEvent.CTRL_DOWN_MASK);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900