# HG changeset patch # User James D. Callahan III # Date 1363755417 18000 # Node ID 726e8a94391d38a221f64e2da4501b40d1b886ff # Parent 58b090074edaaf41e27b0953c863dfb79f024dab Hide the link dialog when pressing Enter/Return. diff -r 58b090074eda -r 726e8a94391d Comments.lua --- 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 = {