search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

how to connect function keys with functionalities?

Asked by pushplata
1 year ago.

I have to add shortcut function keys with previous and next functionality.
kindly guide me how to do it.

Thanks in advance

Answer posted by Dan Letecky [DayPilot]
1 year ago.

You handle shortcuts by adding a simple "keydown" event handler to your application:

document.addEventListener("keydown", e => {
  if (e.key === "F2") {
    // do something
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.