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

how to connect function keys with functionalities?

Asked by pushplata
11 days 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]
10 days ago.

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

document.addEventListener("keydown", e => {
  if (e.key === "F2") {
    // do something
New Reply
This reply is
Your name (optional):