mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-24 17:18:54 +00:00
CPWindow handled every Tab key press itself and moved to the next key view, so a text view never received Tab and could not insert a tab character. It now follows Cocoa: an editable text view takes plain Tab and inserts a tab, while Control-Tab, Shift-Tab and Tab in other views still move through the key view loop. * CPResponder.j: Add _wantsTabKey, which returns NO by default. * CPTextView/CPTextView.j: Want the Tab key while editable. * CPWindow/CPWindow.j: Pass plain Tab to a first responder that wants it, and keep the browser from moving its own focus.