I have Safari 1.2.2 (v125.8) installed, and set the preference in the
browser. My WebView still wasn't handling the tab key, so I added the
following code to both CarbonWeb and the MiniBrowser, to make sure the
preference was set in those apps.
typedef void (* DoPrefsSetTabsToLinksProc) (id,SEL,BOOL);
[webView setPreferencesIdentifier:@"com.adobe.mybrowsertest"];
WebPreferences * webprefs = [webView preferences];
if( [webprefs respondsToSelector:@selector(setTabsToLinks:)] )
{
DoPrefsSetTabsToLinksProc doSetTabsToLinks =
(t_doSetTabsToLinksProc)[webprefs
methodForSelector:@selector(setTabsToLinks:)];
if( doSetTabsToLinks != NULL )
doSetTabsToLinks( webprefs, @selector(setTabsToLinks:), YES );
}
The WebView in both those Apps is not highlighting links with the Tab
key. Am I doing something wrong here?
JK
On Jun 29, 2004, at 1:25 PM, John Sullivan wrote:
Yes, given a new-enough Panther.
John
On Jun 29, 2004, at 12:46 PM, John Kinder wrote:
Thanks. And will that be available for Panther?
JK
On Jun 29, 2004, at 12:39 PM, John Sullivan wrote:
You can use the WebPreferences method:
- (void)setTabsToLinks:(BOOL)flag;
It's in the WebKit APIs for the version being distributed at WWDC.
John
On Jun 29, 2004, at 11:10 AM, John Kinder wrote:
Sorry, I hit send before intended, and maybe I should just wait for
the WWDC session.
In Safari, there is a preference for highlighting links as the user
presses the Tab key. Is there a way to get that functionality into
our WebView?
JK
------------------------------------------------------------
John Kinder
------------------------------------------------------------
No matter how I struggle and strive,
I'll never get out of this world alive.
- H. Williams Sr.
_______________________________________________
webkitsdk-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webkitsdk-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webkitsdk-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webkitsdk-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
Do not post admin requests to the list. They will be ignored.