Changeset 28388 in webkit
- Timestamp:
- Dec 4, 2007 6:12:16 AM (16 years ago)
- Location:
- trunk/WebKit/gtk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/gtk/ChangeLog
r28386 r28388 1 2007-12-04 Luca Bruno <lethalman88@gmail.com> 2 3 Reviewed by Alp Toker. 4 5 Fix a regression in key press propagation in r28386. 6 7 Fix indentation (was off by two spaces). 8 9 * WebView/webkitwebview.cpp: 10 1 11 2007-12-04 Luca Bruno <lethalman88@gmail.com> 2 12 -
trunk/WebKit/gtk/WebView/webkitwebview.cpp
r28386 r28388 109 109 PlatformKeyboardEvent keyboardEvent(event); 110 110 111 if (!frame->eventHandler()->keyEvent(keyboardEvent) && event->type == GDK_KEY_PRESS) 112 { 113 FrameView* view = frame->view(); 114 115 /* FIXME: at the very least we should be using the same code than the 116 Windows port here, but our ScrollView file diverges enough to make 117 that impossible. A short term solution would be to unify ScrollViewWin 118 and ScrollViewGtk. Long-term ScrollView and FrameView should be 119 unified and used everywhere for scrollbars */ 120 121 switch (event->keyval) { 122 case GDK_Down: 123 view->scrollBy(0, LINE_STEP); 124 return TRUE; 125 case GDK_Up: 126 view->scrollBy(0, -LINE_STEP); 127 return TRUE; 128 case GDK_Right: 129 view->scrollBy(LINE_STEP, 0); 130 return TRUE; 131 case GDK_Left: 132 view->scrollBy(-LINE_STEP, 0); 133 return TRUE; 134 } 135 } 111 if (frame->eventHandler()->keyEvent(keyboardEvent)) 112 return TRUE; 113 114 if (event->type == GDK_KEY_PRESS) { 115 FrameView* view = frame->view(); 116 117 /* FIXME: at the very least we should be using the same code than the 118 Windows port here, but our ScrollView file diverges enough to make 119 that impossible. A short term solution would be to unify ScrollViewWin 120 and ScrollViewGtk. Long-term ScrollView and FrameView should be 121 unified and used everywhere for scrollbars */ 122 123 switch (event->keyval) { 124 case GDK_Down: 125 view->scrollBy(0, LINE_STEP); 126 return TRUE; 127 case GDK_Up: 128 view->scrollBy(0, -LINE_STEP); 129 return TRUE; 130 case GDK_Right: 131 view->scrollBy(LINE_STEP, 0); 132 return TRUE; 133 case GDK_Left: 134 view->scrollBy(-LINE_STEP, 0); 135 return TRUE; 136 } 137 } 136 138 137 139 return gtk_bindings_activate_event(GTK_OBJECT(widget), event);
Note: See TracChangeset
for help on using the changeset viewer.