144
Views
3
Comments
Solved
Keyboard shortcuts on lists: SHIFT click and CTRL + A
Question

Dear community,

I am working in reactive and trying to figure out how to use keyboard shortcuts. 

I have a list of images, that you can select. When selected they show a border around them. 

I am looking for a wat to use keyboard shortcuts: 

  • CTRL A: Selects all images 
  • SHIFT + click: Selects everything from the first until the last selected

Any ideas how to go about this? 

I have been playing with tab indeces and shortcut key JavaScript but this I cannot seem to figure out... 

Thank you! 

Liesbeth

2019-12-16 14-44-15
Rúben Santos
Solution

Hi Liesbeth,

Made an example, hope it works for you, if you have any questions let me know.

Cheers,

Ruben

KeyboardEvents.oml
2019-12-16 14-44-15
Rúben Santos
Solution

Hi Liesbeth,

Made an example, hope it works for you, if you have any questions let me know.

Cheers,

Ruben

KeyboardEvents.oml
2020-02-07 09-04-54
Liesbeth

Dear Sachin and Ruben,

Thank you so much for this fast response. I took a look at the forge components and the example and was able to implement everything I need from this! 

Thank you so much!

Liesbeth

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.