Getting a WebView to Work Just Like Safari

(edited to give a better description of the answer I gave)

I created a very simple browser in InterfaceBuilder, consisting of a navigation bar and a web browser.

Everything works fine, except when I try to execute a tab between input fields, this is a web view, the focus goes to the navigation bar.

I suppose I need to do something with the chain of defendants, but I could not understand what.

Any tips?

Thanks Kelly

+5
source share
1 answer

Probably no one in the world cares about this, but I am going to answer it if someone needs it at some point.

, cappuccino, 3 .

.

cocoa WebView cappuccino. -.

  • , IB, "initialFirstponder" Windows webview, , , "" . .
  • , keyCode charCode dom- WebView cocoa Safari. , -, " ". _needsKeyboardEventDisambiguationQuirks WebView objC , , . WebKit, . . webkit 32694 , . a) _needsKeyboardEventDisambiguationQuirks, NO b) WebView , , [[webviewinstance preferences] _postPreferencesChangesNotification], . WebView DOM, Safari.

  • , cappuccino , , . WebKit Safari. Safari WebView.

    [mywebviewinstance setCustomUserAgent: @"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4"]
    

, , .

, -!

+12

All Articles