Shortcuts implementation now use QShortcut instead of using the raw key event. Besides, hold spacebar to temporarily enter drag mode also implemented in this commit, this is very useful in zoom mode.