min-vim-mode icon indicating copy to clipboard operation
min-vim-mode copied to clipboard

Change keyup to keydown to avoid MacOS conflicts with cmd-c

Open Brixy opened this issue 5 years ago • 0 comments

Hi and thank you for this script—and the excellent Min browser!

Using cmd-c on MacOS sometimes works as expected (copy marked text) and sometimes it acts like a regular c press.

Replacing

document.addEventListener('keyup', function (e) {

with

document.addEventListener('keydown', function (e) {

solved the problem.

I did not make a pull request because I could only test this on MacOS.

Brixy avatar Sep 15 '20 08:09 Brixy