Changeset 79151 in webkit


Ignore:
Timestamp:
Feb 20, 2011 1:28:01 AM (13 years ago)
Author:
Carlos Garcia Campos
Message:

2011-02-20 Carlos Garcia Campos <cgarcia@igalia.com>

Reviewed by Martin Robinson.

[GTK] Implement PlatformKeyboardEvent::getCurrentModifierState()
https://bugs.webkit.org/show_bug.cgi?id=52880

  • platform/gtk/KeyEventGtk.cpp: (WebCore::PlatformKeyboardEvent::getCurrentModifierState):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r79145 r79151  
     12011-02-20  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GTK] Implement PlatformKeyboardEvent::getCurrentModifierState()
     6        https://bugs.webkit.org/show_bug.cgi?id=52880
     7
     8        * platform/gtk/KeyEventGtk.cpp:
     9        (WebCore::PlatformKeyboardEvent::getCurrentModifierState):
     10
    1112011-02-19  Andreas Kling  <kling@webkit.org>
    212
  • trunk/Source/WebCore/platform/gtk/KeyEventGtk.cpp

    r76351 r79151  
    589589void PlatformKeyboardEvent::getCurrentModifierState(bool& shiftKey, bool& ctrlKey, bool& altKey, bool& metaKey)
    590590{
    591     notImplemented();
    592     shiftKey = false;
    593     ctrlKey = false;
    594     altKey = false;
    595     metaKey = false;
     591    GdkModifierType state;
     592    gtk_get_current_event_state(&state);
     593
     594    shiftKey = state & GDK_SHIFT_MASK;
     595    ctrlKey = state & GDK_CONTROL_MASK;
     596    altKey = state & GDK_MOD1_MASK;
     597    metaKey = state & GDK_META_MASK;
    596598}
    597599
Note: See TracChangeset for help on using the changeset viewer.