Azgaar / Fantasy-Map-Generator

Web application generating interactive and highly customizable maps

Home Page:https://azgaar.github.io/Fantasy-Map-Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CTRL+C not working on text fields

leontrague opened this issue · comments

Describe the bug
When on a text field (state name, colour code, etc.), the usual shortkey CTRL+C doesn't copy the selected text.

Steps to reproduce

  1. Click on any label or text field (a burg, for example);
  2. Select some text in it;
  3. Type CTRL+C on your keyboard;
  4. No text was copied into the clipboard.

Expected behavior
CTRL+C should copy the selected text into the clipboard.

.map file
Irrelevant, this behaviour is unrelated to a map file.

Screenshots
/

System

  • Version: any (I'm currently working with 1.86.07 but this issue occurred on any earlier version I worked with)
  • Browser: Firefox 101.0.1 x64
  • OS: Windows 10

Hello. It works fine for me, can you try in a different browser?

Hello, I tried on Firefox, Chrome and Edge, I had the same issue. I attached a video to show the bug on Chrome (fyi I didn't realize my input display hadn't the Insert key, and I didn't capture contextual menus, so just to clarify: on first try I press ctrl+C and it doesn't work (that's why ctrl+V pastes what I copied before recording), on second try I press ctrl+Insert and it works, on third try I use contextual menu and it works).

A friend of mine has the exact same issue for as long as I, he's on another OS (a GNU/Linux one), I'll share his infos as soon as I collect them. But since they're quite different from mine I don't see how it could be related to my installation.

Azgaar.ctrl.c.bug.mp4

.

My friend is on Fedora/Firefox, and he found where this comes from (so I'm really surprised CTRL+C works for you):
bedbb7c#diff-0fa2f33835e75a99cbcb99de6dfa476bc1a58a1deb2fe700d74152a78dbca531
if (ctrlKey && ["KeyS", "KeyC"].includes(code)) event.preventDefault(); // disallow CTRL + S and CTRL + C

Put some fix, please try now

Perfect, thanks a lot, it works now like a charm :)