atarimacosx / Atari800MacX

Atari800 Emulator for Mac OSX
http://www.atarimac.com
GNU General Public License v2.0
72 stars 17 forks source link

Fix problem where the Shift state is not cleared after releasing the Shift key #17

Closed pedgarcia closed 4 years ago

pedgarcia commented 4 years ago

The previous fix to avoid the extra character when using the international keyboard might have add an unexpected behavior.

When the user uses the Ctrl+Shift combination, the shift key state was still set to 1 after both keys have been released.

The proposed fix moves the return AKEY_NONE; from the main state machine to later in the code where all the release actions have been processed.