* Apply patch from Matthias Klose to enable building with a free java compiler -
thanks! (Cf. #383006)
* Change build dependencies accordingly.
+ * Apply patch from Morten Omholt Alver (upstream author) to enable 'enter' in
+ dialogs - thanks! (Closes: #387235)
- -- gregor herrmann <gregor+debian@comodo.priv.at> Sun, 24 Sep 2006 19:29:05 +0200
+ -- gregor herrmann <gregor+debian@comodo.priv.at> Mon, 25 Sep 2006 00:32:40 +0200
jabref (2.1-3) unstable; urgency=low
--- /dev/null
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_button.dpatch by <gregor+debian@comodo.priv.at>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Make buttons react to 'enter'.
+## Patch by Morten Omholt Alver (upstream author)
+
+@DPATCH@
+diff -urNad jabref~/src/java/net/sf/jabref/JabRef.java jabref/src/java/net/sf/jabref/JabRef.java
+--- jabref~/src/java/net/sf/jabref/JabRef.java 2006-08-10 21:38:43.000000000 +0200
++++ jabref/src/java/net/sf/jabref/JabRef.java 2006-09-25 00:30:22.000000000 +0200
+@@ -654,6 +654,15 @@
+ UIManager.put("SimpleInternalFrame.activeTitleBackground", GUIGlobals.gradientBlue);
+ //UIManager.put("TabbedPane.selected", Color.red);
+ }
++
++ if (!Globals.ON_WIN && !Globals.ON_MAC) {
++ // For Linux, add Enter as button click key:
++ UIDefaults def = UIManager.getDefaults();
++ InputMap im = (InputMap)def.get("Button.focusInputMap");
++ im.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, false), "pressed");
++ im.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, true), "released");
++ }
++
+ } catch (Throwable ex) {
+ ex.printStackTrace();
+ System.err.println("Trying to set system default Look&Feel...");