-
tonikitoo@webkit.org authored
Reviewed by Simon Fraser. Spatial Navigation: add support to <input type=text> and <textarea> https://bugs.webkit.org/show_bug.cgi?id=37153 Before this patch, the focus cannot move away from input box once it is in. This patch allows focus move to neighbor nodes when the caret reaches the edge of the texts. This patch does not support yet cases where the focused <input> has a JS handler for the arrow keys. WebCore: Tests: fast/events/spatial-navigation/snav-input.html fast/events/spatial-navigation/snav-textarea.html * editing/EditorCommand.cpp: (WebCore::executeMoveDown): (WebCore::executeMoveLeft): (WebCore::executeMoveRight): (WebCore::executeMoveUp): * editing/SelectionController.cpp: (WebCore::SelectionController::modify): WebKit/qt: * WebCoreSupport/EditorClientQt.cpp: WebCore::EditorClientQt::handleKeyboardEvent): LayoutTests: * fast/events/spatial-navigation/snav-input-expected.txt: Added. * fast/events/spatial-navigation/snav-input.html: Added. * fast/events/spatial-navigation/snav-textarea-expected.txt: Added. * fast/events/spatial-navigation/snav-textarea.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71388 268f45cc-cd09-0410-ab3c-d52691b4dbfc
75764085