diff Comments.lua @ 265:726e8a94391d

Hide the link dialog when pressing Enter/Return.
author James D. Callahan III <jcallahan@curse.com>
date Tue, 19 Mar 2013 23:56:57 -0500
parents 58b090074eda
children d2f7737fd68b
line wrap: on
line diff
--- a/Comments.lua	Tue Mar 19 23:53:38 2013 -0500
+++ b/Comments.lua	Tue Mar 19 23:56:57 2013 -0500
@@ -42,6 +42,9 @@
             on_escape_pressed = function(self)
                 self:ClearFocus()
             end,
+            on_enter_pressed = function(self)
+                self:GetParent().buttons[1]:Click()
+            end,
         },
     },
     buttons = {