Skip to content

Commit

Permalink
Fix modifiers overlapping raw character when capturing key code
Browse files Browse the repository at this point in the history
  • Loading branch information
puckipedia committed Oct 25, 2014
1 parent 0f29ad9 commit ada6388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/CKeyCapturer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void CKeyCapturer::FilterKeyDown(unsigned long modifiers, unsigned long key, uns
else
fKS.prefix = fKS.combo;

fKS.combo = (rawchar << 24) | (modifiers << 16);
fKS.combo = (rawchar << 24) | ((modifiers & 0xFF) << 16);

if (rawchar == 0 || rawchar == B_FUNCTION_KEY)
{
Expand Down

0 comments on commit ada6388

Please sign in to comment.