Obsolete golang-120
[oi-userland.git] / components / library / gtk+ / patches / 05-sun-pgdn-pgup-keybindings.patch
blob419778b8fd188fed2d7ee8a7b7def8e3f8f01dea
1 --- gtk+-2.24.33/gdk/x11/gdkevents-x11.c.orig
2 +++ gtk+-2.24.33/gdk/x11/gdkevents-x11.c
3 @@ -1138,8 +1138,31 @@
4 return_val = FALSE;
5 break;
8 + if (xevent->xkey.state == 0)
9 + {
10 + switch (XKeycodeToKeysym (display_x11->xdisplay, xevent->xkey.keycode, 0)) {
11 + case GDK_R7: /* Home key on Sun Type-4/5/6 keyboard */
12 + xevent->xkey.keycode = XKeysymToKeycode (display_x11->xdisplay,
13 +GDK_Home);
14 + break;
15 + case GDK_R13: /* End key on Sun Type-4/5/6 keyboard */
16 + xevent->xkey.keycode = XKeysymToKeycode (display_x11->xdisplay,
17 +GDK_End);
18 + break;
19 + case GDK_R9: /* PgUp Key */
20 + xevent->xkey.keycode = XKeysymToKeycode (display_x11->xdisplay,
21 +GDK_Prior);
22 + break;
23 + case GDK_R15: /* PgDn Key */
24 + xevent->xkey.keycode = XKeysymToKeycode (display_x11->xdisplay,
25 +GDK_Next);
26 + break;
27 + }
28 + }
29 translate_key_event (display, event, xevent);
30 set_user_time (window, event);
32 break;
34 case KeyRelease: