Ctrl, Alt, or Meta keys to right click

This commit is contained in:
Gavin McDonald
2018-09-03 00:17:52 -04:00
parent 727a8ea105
commit bf85712363

View File

@@ -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) {