Posted 31 January 2018, 11:42 pm EST
Hi Deepak,
I gave it a try with register method, but I don’t see there is any command name (2nd param for register function) related to keypress.
Let me explain you in detail. we are using addkeymap in v9 for listening to keyboard events. as below:
// 113 is the keycode that refers to ‘F2’
sheet.addKeyMap(113, false, false, false, false, function () {
sheet.startEdit();
});
so, in the sheet area, when user presses F2, callback function that was bound above was being called.
Now, we want to acheive same thing in V11. As suggested by you, when I want to use register method it is expecting following params:
(name, command, key, ctrl, shift, alt, meta)
where name refers to command name, which are mentioned in: http://help.grapecity.com/spread/SpreadSheets11/SpreadJS~GC.Spread.Sheets.Commands.html
but, there is no command that is related to keypress.
How to achieve our desired behavior in V11?
Note: I even tried with migration script, but above functionality is not working as there is no appropriate command associated with this action.