Fixes #1919: Shortcuts keys for inverting values don't work correctly wi...

This should be a better fix than #1930. @davxlw verification needed.