Skip to content

Shift or Ctrl Key cause the drawn line is selected with additional line and can't be removed #17829

Open
@advcha

Description

@advcha

Attach (recommended) or Link to PDF file here: The live demo: https://mozilla.github.io/pdf.js/web/viewer.html

Configuration:

  • Web browser and its version: FireFox and Chrome tested
  • Operating system and its version:
  • PDF.js version: The latest one (4.0.379)
  • Is a browser extension: No

Steps to reproduce the problem:

  1. Open the live demo https://mozilla.github.io/pdf.js/web/viewer.html
  2. click the Draw toolbar
  3. Draw a line on the viewer (any line on any place)
  4. Okay. here is the problem. I want to create another line but I press and hold Shift or Ctrl key on my keyboard then tried to draw the new line with my mouse. Suddenly the drawn line is selected with additional straight line in it. Also I can't remove them.

What is the expected behavior?
I expect the pressed Shift/Ctrl key can make a straight line instead of the free/bezier line (if it's possible to create a straight line with the key combination).

What went wrong?
The drawn line is selected with additional straight line in it. Also I can't remove them. pls check this screen
-compressed-tracemonkey-pldi-09-pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions