Revert "TRA-4169 apply query by enter (#665)" (#703)

This reverts commit c098ff3323.
This commit is contained in:
gadotroee
2022-01-26 19:32:49 +02:00
committed by GitHub
parent c098ff3323
commit 65bb338ed6

View File

@@ -10,8 +10,6 @@ const useKeyPress = (eventConfigs, callback, node = null) => {
// handle what happens on key press
const handleKeyPress = useCallback(
(event) => {
event.preventDefault();
// check if one of the key is part of the ones we want
if (eventConfigs.some((eventConfig) => Object.keys(eventConfig).every(nameKey => eventConfig[nameKey] === event[nameKey]))) {
callbackRef.current(event);