bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Delete key action should be configurable using keyMap #9439

Open ghulamghousdev opened 2 months ago

ghulamghousdev commented 2 months ago

Forum post

Currently there is no way to override the Default behaviour of Delete and Backspace key. It should be configurable using the keymap.

Try using the below code in the basic vanilla example for scheduler and see that it has no affect:

    keyMap : {
        Delete : null
    }
matsbryntse commented 2 months ago

Currently handled by the navigator:



 navigator : {
                allowCtrlKey   : true,
                scrollSilently : true,
                keys           : {
                    Space     : 'onEventSpaceKey',
                    Enter     : 'onEventEnterKey',
                    Delete    : 'onDeleteKey',
                    Backspace : 'onDeleteKey',
                    ArrowUp   : 'onArrowUpKey',
                    ArrowDown : 'onArrowDownKey',
                    Escape    : 'onEscapeKey',

                    // These are processed by GridNavigation's handlers
                    Tab         : 'onTab',
                    'SHIFT+Tab' : 'onShiftTab'
                }
            }
```,