Hi @a.eckenberg
Aleksandra asked to do some testing here, and in my case when I used the logic you provided here:
beforeKeyDown: function(event) {
if (event['ctrlKey'] || event['metaKey']) {
// We use angularJS and the scope has two variable to store ctrl and alt states (pressed or not)
$scope.isCtrlPressed = true;
} else {
$scope.isCtrlPressed = false;
}
if (event['altKey']) {
$scope.isAltPressed = true;
} else {
$scope.isAltPressed = false;
}
// Until here it works as intended
if ($scope.isCtrlPressed && $scope.isAltPressed && event['key'] === 'x') {
// We enter in this function like intended but
event.preventDefault(); // <--- This line does not prevent the selected cell from being cut
return false; // <----- neither this one
}
}
I was able to block the action for CMD + ALT (Option) + X. We’d like to take a look at it together, so maybe we can set up a quick call and see if we can find solution then? If you are interested in this option, let us know about your availability and time zone at support@handsontable.com