diff --git a/modules/cart/commerce_cart.libraries.yml b/modules/cart/commerce_cart.libraries.yml
index 512c7a7..0055efe 100644
--- a/modules/cart/commerce_cart.libraries.yml
+++ b/modules/cart/commerce_cart.libraries.yml
@@ -10,3 +10,10 @@ cart_block:
   dependencies:
     - core/jquery
     - core/drupal
+edit_quantity:
+  version: VERSION
+  js:
+    js/commerce_cart_edit_quantity.js: {}
+  dependencies:
+    - core/jquery
+    - core/drupal
diff --git a/modules/cart/js/commerce_cart_edit_quantity.js b/modules/cart/js/commerce_cart_edit_quantity.js
new file mode 100644
index 0000000..f5ce09f
--- /dev/null
+++ b/modules/cart/js/commerce_cart_edit_quantity.js
@@ -0,0 +1,25 @@
+/**
+ * @file
+ * Defines Javascript behaviors for commerce cart edit quantity views handler.
+ */
+
+(function ($, Drupal, drupalSettings) {
+  'use strict';
+
+  /**
+   * Trigger the Update button when hitting the enter key.
+   */
+  Drupal.behaviors.commerceCartEditQuantity = {
+    attach: function (context) {
+      // Click the update button, not the remove button on enter key if we are
+      // on a text field.
+      $('form .views-field-edit-quantity input.form-number', context).keydown(function (event) {
+        if (event.keyCode === 13) {
+          // Prevent browser's default submit from being clicked.
+          event.preventDefault();
+          $('input#edit-submit', $(this).parents('form')).click();
+        }
+      });
+    }
+  };
+})(jQuery, Drupal, drupalSettings);
diff --git a/modules/cart/src/Plugin/views/field/EditQuantity.php b/modules/cart/src/Plugin/views/field/EditQuantity.php
index ee30380..05765e0 100644
--- a/modules/cart/src/Plugin/views/field/EditQuantity.php
+++ b/modules/cart/src/Plugin/views/field/EditQuantity.php
@@ -137,6 +137,10 @@ class EditQuantity extends FieldPluginBase {
     }
     // Replace the form submit button label.
     $form['actions']['submit']['#value'] = $this->t('Update cart');
+    // Add JS for triggering the Update button when hitting the enter key.
+    $form['#attached'] = [
+      'library' => ['commerce_cart/edit_quantity'],
+    ];
   }
 
   /**
