OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/frontend/app/components/wp-fast-table/handlers/click-or-enter-handler.ts

12 lines
444 B

import {keyCodes} from '../../common/keyCodes.enum';
import {WorkPackageTable} from '../wp-fast-table';
export abstract class ClickOrEnterHandler {
public handleEvent(table: WorkPackageTable, evt:JQueryEventObject) {
if (evt.type === 'click' || (evt.type === 'keydown' && evt.which === keyCodes.ENTER)) {
this.processEvent(table, evt);
}
}
protected abstract processEvent(table:WorkPackageTable, evt:JQueryEventObject);
}