fixed shortcut issues when focus is on a text field