Wohlstand / OPN2BankEditor

A small cross-platform editor of the OPN2 FM banks of different formats (Downloads in README below)
GNU General Public License v3.0
40 stars 8 forks source link

ignore unmatched key release events on keyboard #33

Closed jpcima closed 6 years ago

jpcima commented 6 years ago

It's a fix for #32

This keeps track of a set of keys pressed on keyboard. Then it can filter out the release events which don't match a previous key-press.

It's expected occurrence that there will happen pairs of unmatched press/release. (example: text edit consumes a key press for itself, doesn't care about key release and lets it through)