Exporting to Windows with the WebView2 wrapper

You're viewing a single comment in a conversation. View all the comments
  • 1 Comments

  • Order by
  • Hello, how can I disable the cntrl-P cntr-R keyboard shortcuts when exporting via Microsoft Edge WebView2 ... or how can I disable the buttons participating in the keyboard combination, for example P or R, etc ...?

    For example, for export via NW.js, such a script is implemented and work:

    window.addEventListener('keydown', ev => {

    if (ev.ctrlKey && (ev.code === 'KeyP' || ev.code === 'KeyR' || ev.code === 'KeyF')) {

    ev.preventDefault();

    }

    });