fix some issues including context menu's shortcut keys

- fix conflicting shortcuts
- rearrange the context menu
Updated to add the missing "emit" keyword