![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 && |
|
[...] 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. |
#3
| |||
| |||
|
|
i.dont.need (AT) any (DOT) more.email wrote: 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.ctrlKey or event.ctrlKey === true snip |
#4
| |||
| |||
|
|
Thomas 'PointedEars' Lahn wrote: i.dont.need (AT) any (DOT) more.email wrote: 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.ctrlKey or event.ctrlKey === true snip Note that in Firefox, "/" brings up the type-to-search bar, |
|
and there is no way (that I could find) to disable this in Javascript (preventDefault, et al did nothing for me). This may have been fixed in recent versions, |
|
but it's something to look out for. |
#5
| ||||
| ||||
|
|
Jeremy wrote: Thomas 'PointedEars' Lahn wrote: i.dont.need (AT) any (DOT) more.email wrote: 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.ctrlKey or event.ctrlKey === true snip Note that in Firefox, "/" brings up the type-to-search bar, When a textarea has the focus? Not here. |
|
Your Message-ID header also appears to violate RFC2822 (and, consequently, RFC1036): AFAIK `.lga' is not a registered TLD (CMIIW). Since this appears to be caused by a flawed news server configuration, you should |
|
a) tell your NetNews provider to update their configuration (recommended) b) change to a standards-compliant NetNews provider |
|
c) use the following in your Thunderbird's user.js: user_pref("mail.identity.default.generate_news_mes sage_id", true); user_pref("mail.identity.default.FQDN", "your-domain.example"); |
#6
| ||||
| ||||
|
|
event.ctrlKey |
|
[...] How can I extend the selection for successive Shift+Ctrl+/ keystrokes? ... but my IE support isn't working. This is a FAQ for which the answer can be found very quickly using your favorite search engine. |
|
See also <http://jibbering.com/faq/#FAQ2_3>. |
|
BTW, your message headers constitute a violation of Internet Standard 11, and of Proposed Internet Standard RFC2822 |
![]() |
| Thread Tools | |
| Display Modes | |
| |