Closed SyntaxPickax closed 11 years ago
Note for myself, pretty sure this will do the job:
http://stackoverflow.com/questions/7251846/jquery-detecting-cmdclick-controlclick
Oh good, I think you're right. Just a heads up though. The developer on stackoverflow seems to think "cmd + mouse left click (mac)" should emulate a right click, but it should actually be "ctrl + mouse left". This also appears to be answered here: http://stackoverflow.com/questions/2485345/javascript-or-jquery-event-handlers-for-ctrl-shift-mouse-left-button-click
Cool thanks. I don't have a mac laptop (I dev on a iMac though) so you'll be my testing buddy when I get to this :)
Great! Happy to help
My external mouse just died. Any chance I can bump this one up in priority? :-) (Should be easy right?)
hey Brandon can you do test whether this demo page works the way you want?:
Yep, works great: ctrl + right-click brings up a context menu, while cmd+right-click and alt+right-click do nothing.
Hmmm. Lot as simple as I thought, I'm probably going to have to replace the whole menu code with something newer, not a 10 minute job in my lunch break :(
Ha, well let me know if/when you need me to test anything. (Hope I didn't ruin your lunch break!)
On Thu, Oct 11, 2012 at 5:37 PM, Brendan Heywood notifications@github.comwrote:
Hmmm. Lot as simple as I thought, I'm probably going to have to replace the whole menu code with something newer, not a 10 minute job in my lunch break :(
— Reply to this email directly or view it on GitHubhttps://github.com/theCrag/website/issues/576#issuecomment-9363265.
I'm contemplating just removing the need for a context menu completely. We're still working out details for editing topos in the mobile app but obviously a right click there makes no sense there. Dragging a point should be a normal drag, maybe the points could be a long tap and hold. Needs more research and thinking
Just a heads up that I'm embarking on a whole new rewrite which will need to work on touch devices and will probably mean getting rid of all menus and moving to an interface more like a drawing program, so I'm gonna close this.
Heads up that in the next release this is now working well
Huzzah.
It's not possible to edit topo points on a Mac laptop without connecting a 2-button mouse. Holding ctrl while clicking should be expected to perform a right click, but this feature does not seem to be supported when editing topos. Instead, ctrl + click is handled as a left-click.
(Things work just fine with an external 2-button mouse.)
Using Chrome 18.0.1025.168 on OS 10.7.4