1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 23:37:59 +00:00

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.
This commit is contained in:
Tom Piccirello 2020-05-14 03:25:11 -07:00 committed by GitHub
parent 841536c9c5
commit ecc17018b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();