Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 147
  • Last Modified:

CONTROLLING KEYS

Now this seems to be a very serious problem. I'm trying to control all keys in D3. That means I have to catch all the keys that were pressed in my program (and that is eg. ScrollLock, ESC, Tab etc.) but not to let, if don't want to, to know the program that the key was pressed. For instance if I press TAB I want do some action and I don't want the program to skip to another TabEnbled component? Please, help me. What should I do? Is it possible? I hope so.
Thanks Jakub.
0
jakubklos
Asked:
jakubklos
  • 3
1 Solution
 
icampbe1Commented:
Set the forms 'KeyPreview' property to TRUE.   Then you can perview the and process the keys you want.  The help is pretty clear on this.
0
 
jakubklosAuthor Commented:
I'll give it a go and then grade.
0
 
jakubklosAuthor Commented:
It sounds great now if I read it again, I grade it with excellent.
0
 
jakubklosAuthor Commented:
It didn't exactly fix the problem. I need for example, if a component is focused and I press TAB it doesn't move to another component and I get this request. You know what I mean? Looks like I need to do some key handler of the component (but I've never done that yet). What do you think?
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now