Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keeping focus on an editable div.



I'm working on a widget that takes a page from Stickies' book, as it were, but I can't see to get keyboard focus into my content-editable div. I can start it there, but if I click anywhere, including within the content area of said div, I can't get focus back. WebKit's implementation of <DIV> doesn't appear to support focus(). If anyone knows how to approximate the same thing, please let me know.

I haved pared my widget down to minimal source and confirmed that the code works as expected in Safari. It doesn't work in a widget. Here's a zip:

<http://people.omnigroup.com/tom/Test.zip>

The actual widget is of course rather more complicated. I would prefer to use an editable div rather than a textarea if possible.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.