unsetMouseAction method

dynamic unsetMouseAction(
  1. dynamic mouse, [
  2. String? key
])

Remove a mouse action by specifying its mouse/key combination @param {} mouse A mouse button (0, 1, 2) or 'WHEEL' for wheel notches @param {} key The keyboard modifier ('CTRL', 'SHIFT') or null if key is not needed @returns {Boolean} True if the operation has been succesfully removed, false otherwise

Implementation

unsetMouseAction(mouse, [String? key]) {
  for (var i = 0; i < mouseActions.length; i++) {
    if (mouseActions[i]['mouse'] == mouse && mouseActions[i]['key'] == key) {
      mouseActions.splice(i, 1);
      return true;
    }
  }

  return false;
}