From 057127f4de92082d746ebb825e7d4b94c5ff73ab Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 13 Feb 2019 16:36:36 +0000 Subject: [PATCH] Hitting enter in Comment node name field clicks markdown button When Enter is pressed in a form, the browser will find the first submittable element and trigger it. By default ').appendTo(result); + var clear = $('').appendTo(result); clear.click(function(evt) { evt.preventDefault(); input.val(""); @@ -897,7 +897,7 @@ RED.editor = (function() { var iconList = $('
').appendTo(picker); var metaRow = $('
').appendTo(picker); var summary = $('').appendTo(metaRow); - var resetButton = $('').appendTo(metaRow).click(function(e) { + var resetButton = $('').appendTo(metaRow).click(function(e) { e.preventDefault(); hide(); done(null); @@ -946,7 +946,7 @@ RED.editor = (function() { $('
'+ ''+ - ' '+ + ' '+ ''+ '
').appendTo(dialogForm); @@ -980,7 +980,7 @@ RED.editor = (function() { var iconRow = $('
').appendTo(dialogForm); $('