UNPKG

react-beautiful-dnd

Version:

Beautiful, accessible drag and drop for lists with React.js

17 lines (14 loc) 305 B
// @flow import * as keyCodes from '../../key-codes'; import stopEvent from './stop-event'; const blocked: number[] = [ // submission keyCodes.enter, // tabbing keyCodes.tab, ]; export default (event: KeyboardEvent) => { if (blocked.indexOf(event.keyCode) >= 0) { stopEvent(event); } };