fixed double event when using keyboard shortcut