Changeset 1133

Show
Ignore:
Timestamp:
11/07/08 11:47:34 (5 years ago)
Author:
mösi
Message:

ticket#7: fixed. Jeder Nicht-Modifier-Tastendruck wird registriert und verhindert darauffolgendes Aktivieren des CapsLock mit dem überlappenden Drücken des anderen Shift.

Location:
windows/neo-vars/src/Source
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • windows/neo-vars/src/Source/recycle.ahk

    r1128 r1133  
    158158guiErstellt := 0 
    159159alwaysOnTop := 1 
     160wasNonShiftKeyPressed := 0 
    160161isShiftRPressed := 0 
    161162isShiftLPressed := 0 
     
    529530 
    530531~*VKA1SC136:: 
    531   if (isShiftLPressed and !isShiftRPressed) 
     532  if (isShiftLPressed and !isShiftRPressed and !wasNonShiftKeyPressed) 
    532533    ToggleMod2Lock() 
    533534  isShiftRPressed := 1 
    534535  isShiftPressed := 1 
     536  wasNonShiftKeyPressed := 0 
    535537  EbeneAktualisieren() 
    536538return 
     
    543545 
    544546~*VKA0SC02A:: 
    545   if (isShiftRPressed and !isShiftLPressed) 
     547  if (isShiftRPressed and !isShiftLPressed and !wasNonShiftKeyPressed) 
    546548    ToggleMod2Lock() 
    547549  isShiftLPressed := 1 
    548550  isShiftPressed := 1 
     551  wasNonShiftKeyPressed := 0 
    549552  EbeneAktualisieren() 
    550553return 
  • windows/neo-vars/src/Source/varsfunctions.ahk

    r1124 r1133  
    3131CharStarDown(PhysKey, ActKey, char) { 
    3232  global 
     33  wasNonShiftKeyPressed := 1 
    3334  if (PP%PhysKey% != "") 
    3435    CompNew := PP%PhysKey%           ; Von Tastaturwiederholung