Current File : /home/inlingua/www/crm/ninexb/wp-content/plugins/tablesome/src/table/src/events/cellEvents.js
import utils from"../utils";class CellEventsClass{constructor(){}onkeydown(e,t,l){const o=utils.getKeyPressed(e);"TAB_KEY_EVENT"==o||"SHIFT_TAB_KEY_EVENT"==o?l.doAction({type:"TAB_KEY_IN_CELL",payload:{keyEvent:o,rowIndex:t.rowIndex,cellIndex:t.cellIndex,stateRecordID:t.stateRecordID}}):"ENTER_KEY_EVENT"==o&&l.doAction({type:"ENTER_KEY_IN_CELL",payload:{rowIndex:t.rowIndex,cellIndex:t.cellIndex,stateRecordID:t.stateRecordID}})}}let cellEvents=new CellEventsClass;export default cellEvents;