diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html
index 23840ca0..bd6ccb6c 100644
--- a/kfet/templates/kfet/kpsul.html
+++ b/kfet/templates/kfet/kpsul.html
@@ -839,8 +839,10 @@ $(document).ready(function() {
onOpen: function() {
var that = this
this.$content.find('input').on('keydown', function(e) {
- if (e.keyCode == 13)
+ if (e.keyCode == 13) {
+ e.preventDefault();
that.$confirmButton.click();
+ }
});
},
onClose: function() { this._lastFocused = articleSelect; }
@@ -864,8 +866,10 @@ $(document).ready(function() {
onOpen: function() {
var that = this
this.$content.find('input').on('keydown', function(e) {
- if (e.keyCode == 13)
+ if (e.keyCode == 13) {
+ e.preventDefault();
that.$confirmButton.click();
+ }
});
},
onClose: function() { this._lastFocused = articleSelect; }
@@ -1025,8 +1029,10 @@ $(document).ready(function() {
onOpen: function() {
var that = this
this.$content.find('input[name=amount]').on('keydown', function(e) {
- if (e.keyCode == 13)
+ if (e.keyCode == 13) {
+ e.preventDefault();
that.$confirmButton.click();
+ }
});
},
onClose: function() { this._lastFocused = triInput; }