From bb090ee7c3378bef1697b0d425c8b42e76666f01 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 10 Jan 2009 23:10:54 +0000 Subject: [PATCH] Reinstate WINDOW_Qualifier - the AutoDoc is wrong, it returns a uint32 not a uint16. This should stop shift and ctrl keys from appearing to get stuck down. svn path=/trunk/netsurf/; revision=6035 --- amiga/gui.c | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/amiga/gui.c b/amiga/gui.c index c008ab37f..6907bf991 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -623,10 +623,10 @@ void gui_init2(int argc, char** argv) void ami_update_quals(struct gui_window_2 *gwin) { - uint16 quals = 0; + uint32 quals = 0; + + GetAttr(WINDOW_Qualifier,gwin->objects[OID_MAIN],(uint32 *)&quals); - GetAttr(WINDOW_Qualifier,gwin->objects[OID_MAIN],(uint16 *)&quals); -printf("%lx\n",quals); gwin->key_state = 0; if((quals & IEQUALIFIER_LSHIFT) || (quals & IEQUALIFIER_RSHIFT)) @@ -723,7 +723,7 @@ void ami_handle_msg(void) if((x>=xs) && (y>=ys) && (xWidth; height=bbox->Height; - //ami_update_quals(gwin); + ami_update_quals(gwin); if((x>=xs) && (y>=ys) && (xkey_state & BROWSER_MOUSE_MOD_1) { @@ -941,18 +941,6 @@ void ami_handle_msg(void) case RAWKEY_ESC: browser_window_key_press(gwin->bw,27); break; - case RAWKEY_LSHIFT: - gwin->key_state = BROWSER_MOUSE_MOD_1; - break; - case 0xe0: // lshift up - gwin->key_state = 0; - break; - case RAWKEY_LCTRL: - gwin->key_state = BROWSER_MOUSE_MOD_2; - break; - case 0xe3: // lctrl up - gwin->key_state = 0; - break; default: /*MapRawKey etc */ break;