This is an automated email from the git hooks/post-receive script. gregoa pushed a commit to branch master in repository jabref.
commit 97ee4bb6b1f56f669a43589661d430e2d2e6fdf2 Author: gregor herrmann <[email protected]> Date: Sun Sep 24 22:33:53 2006 +0000 * Apply patch from Morten Omholt Alver (upstream author) to enable 'enter' in dialogs - thanks! (Closes: #387235) --- debian/changelog | 4 +++- debian/patches/00list | 1 + debian/patches/02_button.dpatch | 27 +++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index a10fd6a..1b3583e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,8 +3,10 @@ jabref (2.1-4) unstable; urgency=low * 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 <[email protected]> Sun, 24 Sep 2006 19:29:05 +0200 + -- gregor herrmann <[email protected]> Mon, 25 Sep 2006 00:32:40 +0200 jabref (2.1-3) unstable; urgency=low diff --git a/debian/patches/00list b/debian/patches/00list index 2a20555..00fb374 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -1 +1,2 @@ 01_free_javac +02_button diff --git a/debian/patches/02_button.dpatch b/debian/patches/02_button.dpatch new file mode 100755 index 0000000..32088b0 --- /dev/null +++ b/debian/patches/02_button.dpatch @@ -0,0 +1,27 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_button.dpatch by <[email protected]> +## +## 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..."); -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jabref.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

