Adds a mapping from a key release to an action command string. Overwrites any existing
mapping that may already have been registered.
964428
public void addReleaseCommand (int keyCode, String command)
    {
        KeyRecord krec = getKeyRecord(keyCode);
        krec.releaseCommand = command;
    }
1247459
private void onKeyUpdated(final int index, final Map.Entry<String, String> object, final String value) {
        final HashMap<String, String> _m = new LinkedHashMap<String, String>(getValue());
        final String lastKeyValue = object.getKey();
        String mapValue = "";
        if (lastKeyValue != null) {
            mapValue = _m.remove(lastKeyValue);
        }
        _m.put(value, mapValue);
        setValue(_m, true);
    }
537859
public void addExtendedInformation(String key, Object value) {
        if (extendedInformation == null) {
            extendedInformation = new HashMap<>();
        }
        extendedInformation.put(key, value);
    }
878796
public CommandArgs<K, V> addKey(K key) {

        singularArguments.add(KeyArgument.of(key, codec));
        return this;
    }
827995
protected void addToMap(Map m, String key, String value) {
        m.put(key,value);
    }
822517
function copyAndOffsetMapping(existingMapping) {
    var column     = getColumnAfter(existingMapping.generatedLine - 1, existingMapping.generatedColumn);
    var newMapping = {
      generated: {
        line  : existingMapping.generatedLine,
        column: column
      }
    };
    if (existingMapping.source) {
      newMapping.source   = existingMapping.source;
      newMapping.original = {
        line  : existingMapping.originalLine,
        column: existingMapping.originalColumn
      };
      if (existingMapping.name) {
        newMapping.name = existingMapping.name;
      }
    }
    generator.addMapping(newMapping);
  }
880490
def put_mapping(self, using=None, **kwargs):
        
        return self._get_connection(using).indices.put_mapping(index=self._name, **kwargs)
1122704
public void add(String key, Object value) {
    validFieldName(key);
    ObjectFieldOperation op = OperationBuilder.gBuilder.create(OperationBuilder.OperationType.Add, key, value);
    addNewOperation(op);
  }
1285827
public int addKey(String key) {
        JdkUtils.requireNonNull(key);
        int nextIndex = keys.size();
        final Integer mapIndex = JdkUtils.putIfAbsent(keys, key, nextIndex);
        return mapIndex == null ? nextIndex : mapIndex;
    }
1235680
def prepare_key(action, options = {})
      (
        options[:key] ||
        self.activity_key ||
        ((self.class.name.underscore.gsub('/', '_') + "." + action.to_s) if action)
      ).try(:to_s)
    end
884346
private static void addMapping(Map<String, String> map, String key, String value, String kind) {
    String oldValue = map.put(key,  value);
    if (oldValue != null && !oldValue.equals(value)) {
      ErrorUtil.error(kind + " redefined; was \"" + oldValue + ", now " + value);
    }
  }
874037
private void addAction(NamedParameterStatement nps, Map<String, String> keysToColumns, Map<String, Object>[] maps) throws SQLException {
		Map<String, Object> params = new HashMap<>();

		for (Map.Entry<String, String> entry : keysToColumns.entrySet()) {
			for (Map<String, Object> map : maps) {
				if (map.containsKey(entry.getKey())) {
					params.put(entry.getValue(), map.get(entry.getKey()));
					break;
				}
			}
		}

		if (params.size() < keysToColumns.size()) {
			Set<String> requiredParams = keysToColumns.keySet();
			requiredParams.removeAll(params.keySet());
			throw new RuntimeException(String.format("Insufficient params: not sent params for query= %s", requiredParams));
		}

		nps.setParameters(params);
		nps.addBatch();
	}
378342
protected int addKey(String k) {
    Integer rv = rkeys.get(k);
    if (rv == null) {
      rv = generateOpaque();
      keys.put(rv, k);
      bkeys.put(rv, KeyUtil.getKeyBytes(k));
      rkeys.put(k, rv);
      synchronized (vbmap) {
        vbmap.put(k, new Short((short) 0));
      }
    }
    return rv;
  }
18505
def key_event(self, key, action):
        
        if action == self.wnd.keys.ACTION_PRESS:
            if key == self.wnd.keys.SPACE:
                print("Space was pressed")

        if action == self.wnd.keys.ACTION_RELEASE:
            if key == self.wnd.keys.SPACE:
                print("Space was released")
1292130
def addSenderKeyState(self, id, iteration, chainKey, signatureKey):
        
        self.senderKeyStates.append(SenderKeyState(id, iteration, chainKey, signatureKey))
856257
function add_to_map($methodname, $in, $out)
    {
        $this->operations[$methodname] = ['name' => $methodname, 'in' => $in, 'out' => $out];
    }
53146
def key_release_event(self, event):
        
        self.example.key_event(event.key(), self.keys.ACTION_RELEASE)