refactoring and fix typo
adjust delay before sending compound shortcut to server (ret and M-x)