[gui][PATCH] set text area focus traversal keys

Thomas Fitzsimmons fitzsim@redhat.com
Fri May 7 00:20:00 GMT 2004


Hi,

This patch fixes two TextArea problems.  First, TextAreas were not
receiving the keyboard input focus.  Second, Tab and Shift-Tab
keystrokes were causing the keyboard focus to be transferred.  Instead,
these keystrokes should be delivered to the TextArea.

I committed this to java-gui-branch.

Tom

2004-05-06  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkTextAreaPeer.java,
	jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c
	(gtkWidgetRequestFocus): New method.
	* java/awt/TextArea.java (TextArea): Set focus traversal keys to
	disable Tab and Shift-Tab keystrokes.
	(addNotify, appendText, insertText, replaceText): Simplify peer
	retrieval code.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c
	(connectSignals): Remove connections to "commit" signals.
	Remove C++-style comments.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: text-area-focus-traversal.patch
Type: text/x-patch
Size: 7635 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040507/5e1412f6/attachment.bin>


More information about the Java-patches mailing list