Keyboard input for signing transactions

MetaMask Extension: Keyboard Input Support Proposal

Overview

I would like to discuss the possibility of enabling users to sign transactions by hitting the Enter/Return key while using the MetaMask extension. This functionality aims to enhance user experience by providing a quicker and more accessible method for transaction confirmation. I am building an defi gaming application where users need to be able to sign many transactions rapidly, doing so with the enter key would be preferred.

Rationale

  • Efficiency: Allowing users to sign transactions with a keyboard shortcut could significantly speed up the transaction signing process.
  • Accessibility: Keyboard shortcuts can improve accessibility for users who prefer or require keyboard navigation.
  • User Preference: Recognizing that this feature might not be universally preferred, it should be implemented as an optional setting.

Proposed Feature

Keyboard Shortcut for Signing Transactions

  • Functionality: When a transaction confirmation window is active, pressing the Enter/Return key will sign the transaction.
  • User Control: This feature will be disabled by default. Users can enable it in the extension settings.

Discussion Points

  1. Security Concerns: How do we ensure that this feature does not compromise security? Consider accidental key presses or automated scripts.
  2. User Experience: How do we introduce this feature to users? Should there be an initial tutorial or tooltips?
  3. Compatibility: Ensuring this feature works seamlessly across different browsers and platforms.
  4. Feedback Mechanism: How will the extension provide feedback to the user upon pressing Enter/Return? For instance, a brief visual confirmation before signing.

Implementation Considerations

  • Settings Toggle: Implement a toggle in the extension’s settings menu for enabling/disabling this feature.
  • Keyboard Event Handling: Use a JavaScript to listener for the Enter/Return key event when the transaction confirmation window is active.

Implementation

I would be willing to make a PR for this feature if the MetaMask devs see this as a useful feature to have.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.