Browse Source

Fix Enter button behavior in web UI textarea

Hitting the enter button inside the textarea would submit the form, rather than advancing to the next line.
adaptive-webui-19844
Tom Piccirello 5 years ago committed by GitHub
parent
commit
ecc17018b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/webui/www/private/addtrackers.html

4
src/webui/www/private/addtrackers.html

@ -14,10 +14,6 @@
new Keyboard({ new Keyboard({
defaultEventType: 'keydown', defaultEventType: 'keydown',
events: { events: {
'Enter': function(event) {
$('addTrackersButton').click();
event.preventDefault();
},
'Escape': function(event) { 'Escape': function(event) {
window.parent.closeWindows(); window.parent.closeWindows();
event.preventDefault(); event.preventDefault();

Loading…
Cancel
Save