• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Control+tab event issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Control+tab event issue


  • Subject: Control+tab event issue
  • From: Sravan <email@hidden>
  • Date: Mon, 9 Oct 2006 17:37:46 +0530

Hi all,

Reg:
In the button subclass keyDown: method i am not getting the Control+tab event. ( this is not just buttons in other controls also )
In text field controlTextDidEndEditing: NSTextMovement attribute is giving NSOtherTextMovement value for Control+tab event.


Details:
in my app i want to know whether user pressed the tab, shift +tab, control+tab to move focus to other controls. For that i divided all controls in to button and text elements families.


For Button family
In the subclass keyDown: method i am getting tab and shift +tab events but not control + tab. My Question here is why i am not getting the Control+tab.
I know that for NSTextView's Control+tab is for tabbing out of that. But it should not cause any issue with other elements .... is there any other reason or some thing...


In order to do that i am handling NSApplication subclass sendEvent: i am able to get but finding out the exact control is a tricky thing here, but can be managed. Performance will be a criteria as we have to check for every event which is raised in the system.

For Text family.
In controlTextDidEndEditing: delegate method, i am using NSTextMovement attribute. Here also for Control+tab, NSOtherTextMovement value is given for NSTextMovement attribute. NSOtherTextMovement value will come even for other events like, click with mouse on other element and may come in other places.




Thanks and Regards,
-sra1
D.Sravana kumar,
Phone: 9885556320,
Effigent India Pvt. Ltd.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: NSDictionary dictionaryWithContentsOfFile in Carbon app
  • Next by Date: Re: Temporarily Hide Window
  • Previous by thread: Re: Cocoa Bindings & different nibs
  • Next by thread: Re: Temporarily Hide Window
  • Index(es):
    • Date
    • Thread