Hi,
the isDown call traces true when i test it here, the isToggled traces false
(both when holding down capslock ofcourse).
Tested on xp, flash 8
Just to be sure, 'disable keyboard shortcuts' doesnt have anything to do
with it?
When i do:
Key.addListener(this);
this.onKeyUp = function () {
if (Key.getCode() == Key.CAPSLOCK) trace ("caps up");
}
it shows 'caps up' just fine.
greetz
Hans
On 7/25/06, Daniel Barber <[EMAIL PROTECTED]> wrote:
>
> Long time Flasher with the discovery of a simple issue that appears
> to be a show stopper. I have never had any issues with keyboard
> input, but can't seem to detect whether the caps lock key is held
> down. These two trace actions consistently return the same Boolean
> value based on the toggled state of the caps lock key:
>
> function onEnterFrame() {
> trace(Key.isDown(Key.CAPSLOCK));
> trace(Key.isToggled(Key.CAPSLOCK));
> }
>
> I can only test on the Mac at the moment, but when I test the SWF in
> the Flash debug player or through the Flash plugin I get the same
> results. Both of those trace actions return true if the key is
> toggled, and false if it is not. Even more frustrating is that the
> caps lock key does not trigger a Key.onKeyUp event when it is
> released – if it did it would be possible to workaround the problem.
>
> Has anyone else encountered this problem or discovered a solution? Is
> this a Mac only bug? Does anyone know if screentime or an equivalent
> application can workaround not being able to accurately detect key
> events with the caps lock key?
>
> Thanks.
>
> Daniel Barber_______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com