Disable keystroke if a text field is active

I created a short key sequence to launch particular bookmarks in Safari. I wanted to use 1-1 and 2-2. This works fine, but if I'm in the Safari search bar or a web page text box and type "11", it triggers the bookmark. Could there be an option that would disable the shortcut while you're entering text?