[comp.windows.x] Sun server auto repeat problem

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (02/16/89)

VERSION:
    R3

CLIENT MACHINE and OPERATING SYSTEM:
    any

DISPLAY:
    Sun

WINDOW MANAGER:
    any

AREA:
    server

SYNOPSIS:
    Auto repeat stops prematurely.

DESCRIPTION:
    Press 'a', then 'b', then release 'a'.  Notice that auto repeat stops
    when 'a' is released.  This is unfriendly.

REPEAT BY:
    Try above.

FIX:

*** /tmp/,RCSt1a04797	Wed Feb 15 14:32:43 1989
--- server/ddx/sun/sunKbd.c	Wed Feb 15 14:31:11 1989
***************
*** 515,523 ****
      }
  
      key = (fe->id & 0x7F) + sysKbPriv.offset;
!     if ((keyModifiers = keyModifiersList[key]) == 0) {
  	/*
! 	 * Kill AutoRepeater on any real non-modifier Kbd event.
  	 */
  	autoRepeatKeyDown = 0;
  	if (autoRepeatDebug)
--- 515,525 ----
      }
  
      key = (fe->id & 0x7F) + sysKbPriv.offset;
!     keyModifiers = keyModifiersList[key];
!     if (autoRepeatKeyDown && (keyModifiers == 0) &&
! 	((fe->value == VKEY_DOWN) || (key == autoRepeatEvent.u.u.detail))) {
  	/*
! 	 * Kill AutoRepeater on any real non-modifier key down, or auto key up
  	 */
  	autoRepeatKeyDown = 0;
  	if (autoRepeatDebug)