Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There is probably not a way to do this, but here's the situation:

I am running a Silverlight 4 app in Google Chrome, and on occasion I hit cmd-A (select all) out of habit. It selects the entire SL frame, making it all blue, and I can't deselect it because there is no other element as far as the browser is concerned. Is there a way to deselect current item with a keystroke or something? I am using Google Chrome.

Thanks, Alec

share|improve this question
    
Does an arrow key work? –  Dennis Williamson Nov 16 '10 at 5:29

2 Answers 2

up vote 3 down vote accepted

You can enter the following into the address box to deselect everything

javascript:void(window.getSelection().removeAllRanges())

To make it easier to use, you can make it a bookmark.

  1. Control-click the bookmarks bar and choose Add page.
  2. In the Name field, enter Select None or something like that.
  3. In the URL field, copy and paste the javascript address above.

Now if you accidentally press command-a, you can click on the Select None bookmark.

share|improve this answer
    
Awesome! Thanks man. –  Alec Sloman Nov 17 '10 at 2:00

What happens when you hit ESC?

share|improve this answer
    
The SL frame is responding to most keystrokes, so nothing :( –  Alec Sloman Nov 17 '10 at 2:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.