🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #27011

KeyListener en TextField

#27011
From: Alejandro Navarro
Date: Wed, 04 Nov 1998 00:00
13 lines
1062 bytes
Tengo un applet en el que trato los eventos de teclado sobre un
TextField, pero dependiendo del navegador y S.O., cuando se ejecuta
keyTyped() de KeyAdapter puede haber cargado la tecla pulsada en el
TextField o no. Mi problema es que en KeyTyped() analizo el texto del
TextField y no s� si la �ltima tecla pulsada ha sido cargada en el
mismo.
�Hay alguna forma de obligar a que la cargue o a alguien se le ocurre
una soluci�n alternativa?

Muchas gracias

PD. No quiero usar TextListener porque hay modificaciones de texto en el
TextField que no se deben a pulsaciones de teclado
Technical Details
Message-ID: <36403EFD.FB390492@esed.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: 1116f3,f4b3e9c5328673f5,start
X-Google-Attributes: gid1116f3,public
From: Alejandro Navarro <anv@esed.es>
Subject: KeyListener en TextField
Date: 1998/11/04
Message-ID: <36403EFD.FB390492@esed.es>
X-Deja-AN: 408254636
Content-Transfer-Encoding: 8bit
Organization: Cibernos S.A. (Departamento I+D)
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0
Newsgroups: es.comp.lenguajes.java