src/Tools/jEdit/src/debugger_dockable.scala
changeset 60936 2751f7f31be2
parent 60932 13ee73f57c85
child 61007 eaceb601a8a2
--- a/src/Tools/jEdit/src/debugger_dockable.scala	Sat Aug 15 19:07:11 2015 +0200
+++ b/src/Tools/jEdit/src/debugger_dockable.scala	Sat Aug 15 19:11:11 2015 +0200
@@ -262,6 +262,12 @@
   private val context_field =
     new Completion_Popup.History_Text_Field("isabelle-debugger-context")
     {
+      override def processKeyEvent(evt: KeyEvent)
+      {
+        if (evt.getID == KeyEvent.KEY_PRESSED && evt.getKeyCode == KeyEvent.VK_ENTER)
+          eval_expression()
+        super.processKeyEvent(evt)
+      }
       setColumns(20)
       setToolTipText(context_label.tooltip)
       setFont(GUI.imitate_font(getFont, Font_Info.main_family(), 1.2))