Some X servers set MOD2 for some reason. Limit arrow/pgup/down to 'not alt/control/shift'

svn path=/trunk/netsurf/; revision=10310
This commit is contained in:
Daniel Silverstone 2010-04-08 14:07:41 +00:00
parent c60d5113d8
commit 8b1cde1bb5

View File

@ -541,7 +541,7 @@ gboolean nsgtk_window_keypress_event(GtkWidget *widget, GdkEventKey *event,
if (browser_window_key_press(g->bw, nskey))
return TRUE;
if (event->state == 0) {
if ((event->state & 0x7) == 0) {
double value;
GtkAdjustment *vscroll = gtk_layout_get_vadjustment(g->layout);