We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4745be commit ae90e03Copy full SHA for ae90e03
1 file changed
src/components/modules/ui.ts
@@ -771,7 +771,7 @@ export default class UI extends Module<UINodes> {
771
* case when user clicks on anchor element
772
* if it is clicked via ctrl key, then we open new window with url
773
*/
774
- const element = event.target as Element;
+ const element = (event.target as Element).closest("a");
775
const ctrlKey = event.metaKey || event.ctrlKey;
776
777
if ($.isAnchor(element) && ctrlKey) {
0 commit comments