fix for using special keys for global shortcuts in X11

see Issue #921