Closed (fixed)
Project:
Coffee
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2019 at 07:12 UTC
Updated:
29 Apr 2020 at 15:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
belazothHi,
I was also trying to figure out how to open the links in a new tab as well. So I looked at the code and in the coffee.js file I found that it is using "event.metaKey" to check for the keystroke to open the links in a new tab.
According to this documentation, that should mean that it is ⌘ + click on macOS and ⊞(Windows key) + click for people using WindowsOS will open the link in a new tab. The documentation also says that
so Firefox users on WindowsOS will not be able to use this feature at all.
If you are using WindowsOS and want to use CTRL + click. you can replace all uses of "event.metaKey" with "event.ctrlKey" and within the coffee.js file and you should then be able to use CTRL + click for opening links in new tab. Doing this will however probably stop ⌘ + click on macOS from working, I can't test if it does as I don't own a macOS device.
It would be nice if the module added in functionality for event.ctrlKey so that WindowsOS users can open links in a new tab without having the start menu(programme select area) open up each time they want to open a link in a new tab.
Unfortunately, I'm not good enough at programming to make a patch for the module that would allow this functionality but hopefully, someone that reads this is and can make a patch so it can be added to the module.
Comment #3
aiphesGood to know. Thanks for this investigation. Hope the module maintener will do the change.
Comment #4
das-peter commentedBlunt, but how about reacting to metaKey & ctrlKey?
Comment #5
kyoder commented+1 for reacting to both metaKey and ctrlKey
Comment #7
michaelmol commentedThanks!
Comment #8
aiphesAfter updating to 1.0, "open in new window" via ctl+click or right click doesn't work. Normal behaviour ?