Diff

Differences From Artifact [5b50db4b82]:

To Artifact [f7c8ece55a]:


306
307
308
309
310
311
312





313
314
315
316
317
318
319

    /*
     * Set up the input and output buffers.
     */
    inbuf_reap = inbuf_head = 0;
    outbuf_reap = outbuf_head = 0;






    /*
     * Prepare the mouse handler.
     */
    lastact = MA_NOTHING;
    lastbtn = MB_NOTHING;
    dbltime = GetDoubleClickTime();








>
>
>
>
>







306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324

    /*
     * Set up the input and output buffers.
     */
    inbuf_reap = inbuf_head = 0;
    outbuf_reap = outbuf_head = 0;

    /* 
     * Choose unscroll method
     */
    unscroll_event = US_DISP;

    /*
     * Prepare the mouse handler.
     */
    lastact = MA_NOTHING;
    lastbtn = MB_NOTHING;
    dbltime = GetDoubleClickTime();

1219
1220
1221
1222
1223
1224
1225








1226
1227
1228
1229
1230
1231
1232
    int cancel_alt = FALSE;

    /*
     * Get hold of the keyboard state, because we'll need it a few
     * times shortly.
     */
    ret = GetKeyboardState(keystate);









    /* 
     * Windows does not always want to distinguish left and right
     * Alt or Control keys. Thus we keep track of them ourselves.
     * See also the WM_KEYUP handler.
     */
    if (wParam == VK_MENU) {







>
>
>
>
>
>
>
>







1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
    int cancel_alt = FALSE;

    /*
     * Get hold of the keyboard state, because we'll need it a few
     * times shortly.
     */
    ret = GetKeyboardState(keystate);

    /* 
     * Record that we pressed key so the scroll window can be reset, but
     * be careful to avoid Shift-UP/Down
     */
    if( wParam != VK_SHIFT && wParam != VK_PRIOR && wParam != VK_NEXT ) {
        seen_key_event = 1; 
    }

    /* 
     * Windows does not always want to distinguish left and right
     * Alt or Control keys. Thus we keep track of them ourselves.
     * See also the WM_KEYUP handler.
     */
    if (wParam == VK_MENU) {