Changeset 117584 in webkit


Ignore:
Timestamp:
May 18, 2012 6:55:08 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Text input events are emitted for nodes that do not allow editing.
https://bugs.webkit.org/show_bug.cgi?id=86836

Patch by Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> on 2012-05-18
Reviewed by Kenneth Rohde Christiansen.

Text input events are not anymore emitted for nodes that do not allow editing.
This can be checked with fast/events/key-events-in-input-button.html test output.

  • WebCoreSupport/EditorClientEfl.cpp:

(WebCore::EditorClientEfl::handleEditingKeyboardEvent): Returns false if the node cannot edit.

Location:
trunk/Source/WebKit/efl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/efl/ChangeLog

    r117572 r117584  
     12012-05-18  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
     2
     3        [EFL] Text input events are emitted for nodes that do not allow editing.
     4        https://bugs.webkit.org/show_bug.cgi?id=86836
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Text input events are not anymore emitted for nodes that do not allow editing.
     9        This can be checked with fast/events/key-events-in-input-button.html test output.
     10
     11        * WebCoreSupport/EditorClientEfl.cpp:
     12        (WebCore::EditorClientEfl::handleEditingKeyboardEvent): Returns false if the node cannot edit.
     13
    1142012-05-18  MORITA Hajime  <morrita@google.com>
    215
  • trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp

    r117470 r117584  
    442442        return true;
    443443
     444    // Don't allow text insertion for nodes that cannot edit.
     445    if (!frame->editor()->canEdit())
     446        return false;
     447
    444448    // Don't insert null or control characters as they can result in unexpected behaviour
    445449    if (event->charCode() < ' ')
Note: See TracChangeset for help on using the changeset viewer.