View previous topic :: View next topic |
Author |
Message |
icebutterfly
Joined: 22 Dec 2008 Posts: 9
|
Posted: Thu Jun 09, 2011 10:55 am Post subject: How to capture the 'enter' key? |
|
|
Hello Infralution Group,
Here I met a problem about capture 'enter' key.
For example, In your demo 'Custom Type Editor'. Column 'Stock Level' has been binded a UITypeEditor. Then I click and edit it. please see the following picture.
.
If you click 'Enter' key, the current result like this:
But I want to capture this event about click 'Enter' key, because i need implement some other business.
So can you give me a solution. Thank you in advance!
Thank you in advance! |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Thu Jun 09, 2011 10:26 pm Post subject: |
|
|
Normally when there is an open editor Virtual Tree processes the Enter key and completes the edit (closes the editor) when the Enter key is pressed. You can change this by overriding the ProcessEditEnterCmdKey method and just return false (which indicates the key is not handled). This may however mean that for some editors there is then no way to complete editing via the keyboard. _________________ Infralution Support |
|
Back to top |
|
|
|