ui icon indicating copy to clipboard operation
ui copied to clipboard

Text input may need to prevent default/bubble

Open zero41120 opened this issue 1 year ago • 0 comments

Expected Behavior

When interacting with input in Storybook sand box. Shortcut key of the parent page should not be triggered. For example, pressing "A" toggles the "action" section and "F" enters full screen.

Current Behavior

Pressing "A" shows the character A in the input graphics, and also toggles the action area.

Possible Solution

preventDefault when input is focus

Steps to Reproduce

  1. Visit Sandbox page
  2. Click on the input box
  3. Press "A", observe that action section is toggled and A shows in the input graphics.

Environment

  • version: e.g. 8.0.0
  • Browser & Version: e.g. Chrome 67
  • OS & Version: e.g. Ubuntu 18.04
  • Running Example: url

zero41120 avatar Mar 07 '23 22:03 zero41120