Skip to content

Commit

Permalink
Fixed alpha lock
Browse files Browse the repository at this point in the history
Fixed issue where pressing [2nd]>[alpha] would cause undesired operation.
  • Loading branch information
TheLastMillennial committed Mar 20, 2021
1 parent b20b2cd commit 153d56b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Binary file added Releases/CEyboard 1.1.2.zip
Binary file not shown.
6 changes: 4 additions & 2 deletions Source/CEyboard.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ TrayTip, CEyboard, Press [alpha] then [mode] to swap modes. Numlock status: %num
<^<#F7:: ;alpha
alpha := !alpha ;alpha key was pressed, toggle it

if (second and keyStatus != 2)
if (second and keyStatus != 2) ;if 2nd was pressed, toggle "alpha lock".
{
if keyStatus = 0 ;numeric input
{
Expand All @@ -205,9 +205,11 @@ TrayTip, CEyboard, Press [alpha] then [mode] to swap modes. Numlock status: %num
keyStatus := 0 ;set keyStatus to numeric input
TrayTip, CEyboard, Mode 0: Numeric Input, 2, 16
}
alpha := false ; disables last alpha press to avoid confusion after switching modes
second := false ; disables last 2nd to avoid undesired operation after switching modes
}


Return
<^<#<!F7:: ;XT0n
if (keyStatus != 2)
Expand Down

0 comments on commit 153d56b

Please sign in to comment.