unsetMouseAction method
bool
unsetMouseAction(
- dynamic mouse, [
- String? key
])
- Remove a mouse action by specifying its mouse/key combination
mouse A mouse button (0, 1, 2, 3) 3 for wheel notches
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
bool unsetMouseAction(mouse, [String? key]) {
for (int i = 0; i < mouseActions.length; i++) {
if (
mouseActions[i]['mouse'] == mouse &&
mouseActions[i]['key'] == key
) {
mouseActions.removeAt(i);
return true;
}
}
return false;
}