support TAB in completion: need to configure the component with the key handler;
authorwenzelm
Fri, 04 Jan 2013 16:07:48 +0100
changeset 50724 bf5cc2a06e87
parent 50717 30bcdd5c8e78
child 50725 226a5b290c85
support TAB in completion: need to configure the component with the key handler;
src/Tools/jEdit/patches/jedit/completion
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Tools/jEdit/patches/jedit/completion	Fri Jan 04 16:07:48 2013 +0100
@@ -0,0 +1,15 @@
+diff -ru 5.0.0/jEdit/org/gjt/sp/jedit/gui/CompletionPopup.java 5.0.0/jEdit-patched/org/gjt/sp/jedit/gui/CompletionPopup.java
+--- 5.0.0/jEdit/org/gjt/sp/jedit/gui/CompletionPopup.java	2012-11-17 16:41:58.000000000 +0100
++++ 5.0.0/jEdit-patched/org/gjt/sp/jedit/gui/CompletionPopup.java	2013-01-04 14:25:57.095172180 +0100
+@@ -113,9 +113,9 @@
+ 		list.setCellRenderer(new CellRenderer());
+ 		list.addKeyListener(keyHandler);
+ 		list.addMouseListener(new MouseHandler());
++		list.setFocusTraversalKeysEnabled(false);
+ 
+ 		JPanel content = new JPanel(new BorderLayout());
+-		content.setFocusTraversalKeysEnabled(false);
+ 		// stupid scrollbar policy is an attempt to work around
+ 		// bugs people have been seeing with IBM's JDK -- 7 Sep 2000
+ 		JScrollPane scroller = new JScrollPane(list,
+