From 86e94becbec130f9eeca5bc94b497ec1167a640a Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Wed, 17 Aug 2016 09:19:40 -0400 Subject: [PATCH] diag-edit.php: Perform "Goto line #" action on pressing enter key within the line number element --- src/usr/local/www/diag_edit.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/usr/local/www/diag_edit.php b/src/usr/local/www/diag_edit.php index 7f8a5dc3da..e99aca8f99 100644 --- a/src/usr/local/www/diag_edit.php +++ b/src/usr/local/www/diag_edit.php @@ -210,7 +210,15 @@ print_callout(gettext("The capabilities offered here can be dangerous. No suppor showLine(tarea, gtl); }); - }); + + // Goto the specified line on pressing the Enter key within the "Goto line" input element + $('#gotoline').keyup(function(e) { + if(e.keyCode == 13) { + $('#btngoto').click(); + } + }); + + }); // e-o-events.push() function loadFile() { $("#fileStatus").html(""); @@ -407,6 +415,7 @@ var Base64 = { loadFile(); }); + //]]>