From bf85712363b841f398955f57bd5b2940db861836 Mon Sep 17 00:00:00 2001 From: Gavin McDonald Date: Mon, 3 Sep 2018 00:17:52 -0400 Subject: [PATCH] Ctrl, Alt, or Meta keys to right click --- src/onTap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onTap.js b/src/onTap.js index d2b3fc8..bbce3ef 100644 --- a/src/onTap.js +++ b/src/onTap.js @@ -141,7 +141,7 @@ export default class OnTap { }); if (!this.state.moving) { - const rightClick = event.which && event.which !== 1; + const rightClick = (event.which && event.which !== 1) || event.altKey || event.ctrlKey || event.metaKey; const press = this.settings.desktopPress && event.duration >= this.settings.pressThreshold; if (rightClick || press) {