i wan to known if is possible to add another hotkey for select items. (not for each, but all)
Example, press E over the item selected and triger "the edit file" function press D and trigger another function to delete file
i working on a filebrowser using this library (you can see it in action at my board) i list files, then i can press enter to select files to download or esc to exit, this is fine.
i wan to known if is possible to add another hotkey for select items. (not for each, but all)
Example, press E over the item selected and triger "the edit file" function press D and trigger another function to delete file
Similar to a "keypress event" on the item.
I need to get the item and the key pressed.
Do you think that can be possible to add?
I committed an update to dd_lightbar_menu.js to support this. You can get the latest version from CVS.
I committed an update to dd_lightbar_menu.js to support this. You can
get the latest version from CVS.
Re: Re: dd_lightbar_menu.js - hotkeys
By: Ragnarok to Nightfox on Sun Feb 09 2020 11:15 pm
I committed an update to dd_lightbar_menu.js to support this. You can
get the latest version from CVS.
Note that I've just committed another change that changes the way the function is called. AddAdditionalSelectItemKeys() now takes a string rather than an array of strings. For instance, if you want both lowercase 'e' and uppercase 'E' to work, you would call it this way (assuming lbMenu is the menu object):
lbMenu.AddAdditionalSelectItemKeys("eE");
Nightfox
Sysop: | echicken |
---|---|
Location: | Toronto, Ontario |
Users: | 2,224 |
Nodes: | 6 (0 / 6) |
Uptime: | 14:48:30 |
Calls: | 14,143 |
Files: | 295 |
Messages: | 551,309 |