I
i.dont.need
Hello,
I want to create a small bit of javascript to enable a key based
selection within a text area. My users are in the habit of delineating
options within anecdotal text using forward slashes, and I wanted to
facilitate this more formally.
I want to trap Ctrl+/ and Shift+Ctrl+/ to navigate to the next '/'
character inside the text area or select that text respectively.
Trapping the keystrokes was relatively easy (event.ctrlKey==1 &&
event.keyCode==191), but I haven't been too successful with selections.
I need to support IE6 and 7 as well as FireFox. How can I extend the
selection for successive Shift+Ctrl+/ keystrokes? I have what seems to
be a cludgy version working for FireFox, but my IE support isn't working.
I want to create a small bit of javascript to enable a key based
selection within a text area. My users are in the habit of delineating
options within anecdotal text using forward slashes, and I wanted to
facilitate this more formally.
I want to trap Ctrl+/ and Shift+Ctrl+/ to navigate to the next '/'
character inside the text area or select that text respectively.
Trapping the keystrokes was relatively easy (event.ctrlKey==1 &&
event.keyCode==191), but I haven't been too successful with selections.
I need to support IE6 and 7 as well as FireFox. How can I extend the
selection for successive Shift+Ctrl+/ keystrokes? I have what seems to
be a cludgy version working for FireFox, but my IE support isn't working.