Am 07.07.17 um 04:37 schrieb Robert Hanson:
should be working  now -- check what I just released today. I was having
trouble because I missed this in my own documentation: /In the
explanations given below, it is presumed that we have *set picking
SELECT GROUP*/

I checked 14.20.1 today but nothing has chnged.

My 'pickAction' function is shown below and only prints anything if no modifier key is pressed while the left mouse button is pressed:

function pickAction() {
  var modifiers       = "" + _mouseModifiers;

  if (_atompicked >= 0) {
    var pickedAtomIndex = _atompicked;
    var pickedNode      = {atomindex=@pickedAtomIndex};

    var modifierToString = {};
    modifierToString["16"] = "NONE";
    modifierToString["17"] = "SHIFT";
    modifierToString["24"] = "ALT";
    modifierToString["25"] = "ALT-SHIFT";

    var modifierString = "";
    if (modifierToString[modifiers] != "") {
      modifierString = modifierToString[modifiers];
    }
print "index=" + pickedAtomIndex + " modifiers=" + modifierToString[modifiers] + " (" + modifiers + ")";
  } else {
print "modifiers=" + modifierToString[modifiers] + " (" + modifiers + ")";
  }
}

Regards,
Rolf

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to