Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-11-22 02:31:35

ateslik
Xinha Community Member
Registered: 2009-07-16
Posts: 33

using an accesskey

We're calling Xinha on a textarea with an accesskey:

<textarea name="body" id="body" rows="20" cols="40" accesskey="M" style="width: 100%;">hello world</textarea>

Xinha loads fine, but the accesskey no longer accesses the text area. Is there a workaround for this, or a configuration option I might try to get the accesskey working?

Thanks!

Offline

#2 2009-11-23 21:40:57

ateslik
Xinha Community Member
Registered: 2009-07-16
Posts: 33

Re: using an accesskey

Do accesskeys on xinhas work for anyone else? Just trying to confirm if its me or not.

Offline

#3 2009-11-23 23:49:03

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: using an accesskey

I haven't tried, but I would expect that access keys would not work, I doubt they are transferred from the textarea to the iframe (Xinha uses an "editable" iframe, not the textarea which gets hidden). 

If I was to guess, I'd say that it may not even be possible, because I would not be surprised if browsers didn't do anything with an accesskey on the iframe, and with the textarea hidden I doubt we could even listen to an onfocus event.

It's worth a try though, you could quickly test it by looking in XinhaCore.js for where the iframe is created (look for document.createElement('iframe')) and hack an accesskey onto it there.  If it works, then we could look at doing something a bit cleaner if you opened a ticket about it.


James Sleeman

Offline

Board footer

Powered by FluxBB