Changeset 86243 in webkit


Ignore:
Timestamp:
May 11, 2011 9:59:08 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-11 Chang Shu <cshu@webkit.org>

Reviewed by Antonio Gomes.

[Qt] Tab not working in editing/inserting/typing-tab-designmode-forms.html
https://bugs.webkit.org/show_bug.cgi?id=60477

Unskip passed tests.

  • platform/qt/Skipped:

2011-05-11 Chang Shu <cshu@webkit.org>

Reviewed by Antonio Gomes.

[Qt] Tab not working in editing/inserting/typing-tab-designmode-forms.html
https://bugs.webkit.org/show_bug.cgi?id=60477

PlatformKeyboardEvent.m_text should be set to "\t" instead of leaving as null.
The value is checked at EventHandler.cpp:2527 (r86166).

Function keyTextForKeyEvent is partially implemented and can be enhanced in
a need-base.

  • platform/qt/PlatformKeyboardEventQt.cpp: (WebCore::keyTextForKeyEvent): (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r86241 r86243  
     12011-05-11  Chang Shu  <cshu@webkit.org>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [Qt] Tab not working in editing/inserting/typing-tab-designmode-forms.html
     6        https://bugs.webkit.org/show_bug.cgi?id=60477
     7
     8        Unskip passed tests.
     9
     10        * platform/qt/Skipped:
     11
    1122011-05-11  Csaba Osztrogonác  <ossy@webkit.org>
    213
  • trunk/LayoutTests/platform/qt/Skipped

    r86235 r86243  
    334334editing/inserting/insert-div-023.html
    335335editing/inserting/multiple-lines-selected.html
    336 editing/inserting/typing-tab-designmode-forms.html
    337 editing/inserting/typing-tab-designmode.html
    338336editing/inserting/5994480-2.html
    339337
  • trunk/Source/WebCore/ChangeLog

    r86242 r86243  
     12011-05-11  Chang Shu  <cshu@webkit.org>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [Qt] Tab not working in editing/inserting/typing-tab-designmode-forms.html
     6        https://bugs.webkit.org/show_bug.cgi?id=60477
     7
     8        PlatformKeyboardEvent.m_text should be set to "\t" instead of leaving as null.
     9        The value is checked at EventHandler.cpp:2527 (r86166).
     10
     11        Function keyTextForKeyEvent is partially implemented and can be enhanced in
     12        a need-base.
     13
     14        * platform/qt/PlatformKeyboardEventQt.cpp:
     15        (WebCore::keyTextForKeyEvent):
     16        (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
     17
    1182011-05-11  Adam Roben  <aroben@apple.com>
    219
  • trunk/Source/WebCore/platform/qt/PlatformKeyboardEventQt.cpp

    r69105 r86243  
    579579}
    580580
     581static String keyTextForKeyEvent(const QKeyEvent* event)
     582{
     583    switch (event->key()) {
     584    case Qt::Key_Tab:
     585    case Qt::Key_Backtab:
     586        if (event->text().isNull())
     587            return "\t";
     588    }
     589    return event->text();
     590}
     591
    581592PlatformKeyboardEvent::PlatformKeyboardEvent(QKeyEvent* event)
    582593{
    583594    const int state = event->modifiers();
    584595    m_type = (event->type() == QEvent::KeyRelease) ? KeyUp : KeyDown;
    585     m_text = event->text();
    586     m_unmodifiedText = event->text(); // FIXME: not correct
     596    m_text = keyTextForKeyEvent(event);
     597    m_unmodifiedText = m_text; // FIXME: not correct
    587598    m_keyIdentifier = keyIdentifierForQtKeyCode(event->key());
    588599    m_autoRepeat = event->isAutoRepeat();
Note: See TracChangeset for help on using the changeset viewer.