fix the bug of shortcut keys