ZMYaro / paintz

A simple drawing app that runs in a web browser, designed to be an MS Paint substitute for Chromebooks and other Chrome OS devices. PaintZ is free, but please consider supporting development at https://ko-fi.com/ZMYaro or https://patreon.com/ZMYaro.
https://paintz.app
53 stars 11 forks source link

Cannot copy/cut a freeform selection via keyboard shortcut #171

Closed ZMYaro closed 4 years ago

ZMYaro commented 4 years ago

Describe the bug [A clear and concise description of what the bug is.]

Steps to reproduce the behavior

  1. Create a freeform selection.
  2. Press the keyboard shortcut to cut (e.g., Ctrl+X).
  3. Nothing happens.

Expected behavior The selection should be cut to the clipboard.

Additional context This appears to be because the copy and cut listeners only execute when the regular selection tool is active (in clipboard.js).

ZMYaro commented 4 years ago

Fixed in https://github.com/ZMYaro/paintz/commit/ee70a026ffb775c155e0663b4db99c5e96a5e65f.