Lbry-desktop: Bind enter key press to form submission as appropriate

Created on 8 Sep 2017  路  3Comments  路  Source: lbryio/lbry-desktop

The Issue

If you try to use the Enter key to send credits on the Send screen or send an invite on the Invites screen, the page reloads and nothing happens

Steps to reproduce

  1. Go to Send screen, enter amount and address, press Enter
  2. Go to invite screen, enter email to invite, press Enter
    3.

Expected behaviour

Enter key should be allowed to confirm action

Actual behaviour

Enter key refreshes page.

System Configuration

  • LBRY Daemon version: 0.15.1
  • LBRY App version: 0.15.1
  • LBRY Installation ID:
  • Operating system: Windows

Anything Else

Screenshots

bug

All 3 comments

@tzarebczan re-titled to the solution I'd like to see.

should all forms have this behavior ( publish form... ) ?

Publish probably shouldn't?

(It should only be happening when an input or label is not focused, regardless)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

toktoakhil picture toktoakhil  路  22Comments

tumispro picture tumispro  路  16Comments

ElectronEsq picture ElectronEsq  路  13Comments

ElectronEsq picture ElectronEsq  路  11Comments

seanyesmunt picture seanyesmunt  路  15Comments