Noel Taylor wrote:
> Dear css-d,
>
> This is totally a DOM question and not a CSS question, but I hope that you
> can
> help me anyway.  Apologies if this is inappropriate.
>
> I'm making a website where I will often have to type in a lot of Spanish
> surnames
> into a textarea.  I want to write these names with the correct accent marks
> where
> applicable, but it can be a pain to produce "á", "é", "í", "ó", "ú", and "ñ"
> (and the
> capital versions of those same letters) on a regular American keyboard.
>
> So I thought it would be fun to try to write an event handler that would
> allow me
> to produce those letters in the textarea in question by typing ctrl-a,
> ctrl-e, etc.
>
> Of course, browsers already have their own functionality assigned to those
> key
> combinations.  In IE8 for example, ctrl-a is "select all" and ctrl-o is
> "file->open".
>
> With a lot of research I figured out how to suppress the default behaviors
> for all of
> the key combinations *except* - and this is the weird part - except for
> ctrl-o, which
> triggers a 'file->open' no matter what I do.
>
> I have posted an example of this behavior at:
>
>   http://www.noeltaylor.com/IEbug/index.html
>
> You will only observe this behavior in IE, and since IE8 is the only IE that
> I have
> installed, that's the only one where I can confirm that it works as I'm
> describing it.
>
> I have figured out how to get exactly the behavior I want in Firefox, but I
> have
> removed the Firefox-specific code from the posted example, since right now I
> am
> only interested in the IE behavior.  I have also limited the handlers
> to deal only
> with 'ctrl-a' (which works the way I want) and 'ctrl-o' (which doesn't).
>
> Does anyone have any idea why this behaves the way it does?  Is it just a
> bug in
> IE8?  Can anyone confirm if the behavior is the same in other versions of
> IE?
>
> And, most importantly, does anyone have any ideas about how to eliminate the
> 'file->open' behavior after 'ctrl-o'?
>
> With thanks,
>
> N Taylor
> ______________________________________________________________________
> css-discuss [cs...@lists.css-discuss.org]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
>   
You could just simply look into using the US-International keyboard 
layout for Windows. Then most accented characters can be typed by 
pressing (not holding) AltGr then accent then key, in sequential order.  
Just a thought.
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to