From: Zoltan B. <bar...@us...> - 2013-04-11 15:46:28
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "omegat". The branch, topic/zoltan/autocomplete has been updated via 6451d13a3a146070537aec329b1bd3e5a31f8fc7 (commit) from e1408d95a32e0213002fd55184f2210ca49077ea (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://omegat.git.sourceforge.net/git/gitweb.cgi?p=omegat/omegat;a=commitdiff;h=6451d13a3a146070537aec329b1bd3e5a31f8fc7 commit 6451d13a3a146070537aec329b1bd3e5a31f8fc7 Author: bartkoz <bartkoz@THINKhome> Date: Thu Apr 11 17:45:52 2013 +0200 make Insert insert the selected item and keep the auto-completer open. diff --git a/src/org/omegat/gui/editor/autocompleter/AutoCompleter.java b/src/org/omegat/gui/editor/autocompleter/AutoCompleter.java index a55435f..12b8809 100644 --- a/src/org/omegat/gui/editor/autocompleter/AutoCompleter.java +++ b/src/org/omegat/gui/editor/autocompleter/AutoCompleter.java @@ -158,6 +158,12 @@ public class AutoCompleter { setVisible(false); return true; } + + if ((StaticUtils.isKey(e, KeyEvent.VK_INSERT, 0))) { + acceptedListItem((String)list.getSelectedValue()); + updatePopup(); + return true; + } if ((StaticUtils.isKey(e, KeyEvent.VK_ESCAPE, 0))) { // process key ESCAPE ----------------------------------------------------------------------- Summary of changes: .../gui/editor/autocompleter/AutoCompleter.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) hooks/post-receive -- omegat |