fix unregisterAllHotkeys for linux