久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在電子應用程序中禁用鍵盤快捷鍵 Alt + Tab

Disable keyboard shortcuts Alt + Tab in electron application(在電子應用程序中禁用鍵盤快捷鍵 Alt + Tab)
本文介紹了在電子應用程序中禁用鍵盤快捷鍵 Alt + Tab的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在使用 JavaScript、node.js 和 Electron 構建一個應用程序.

I am building an application using JavaScript, node.js, and Electron.

此應用程序的一部分旨在鎖定計算機,直到用戶進行身份驗證.

Part of this application is designed to lock the computer until the user authenticates themselves.

這可行,但是我需要讓我的應用程序禁用 alt + tab 鍵盤快捷鍵,因為目前用戶可以使用它來跳過我的鎖定頁面(并且從而能夠在沒有經過身份驗證的情況下使用計算機).

This works, however I need to make my application disable the alt + tab keyboard shortcut, as currently the user can use this to skip over my lock page (and thus be able to use the computer without having been authenticated).

任何建議將不勝感激.

推薦答案

您可以為窗口打開信息亭模式,使其全屏并始終在頂部,這樣您就無法轉到其他應用程序.

You could turn on kiosk mode for the window which makes it full screen and always on top so you can't go to another application.

您還可以使窗口透明并將登錄信息放置在屏幕中間,這樣看起來就好像屏幕中間有一個窗口,但您不能點擊屏幕的其他區域.

You could also make the window transparent and position the login in the middle of the screen so it appears as if there is one window in the middle of the screen but you can't click on other areas of the screen.

要處理 Alt+F4 可以使用 window.onbeforeunload 事件或調用 event.preventDefault()close 事件中的 code>.

To handle for Alt+F4 you can use the window.onbeforeunload event or call event.preventDefault() in the close event.

https://electron.atom.io/docs/api/browser-window/#event-close

這篇關于在電子應用程序中禁用鍵盤快捷鍵 Alt + Tab的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to fix BrowserWindow is not a constructor error when creating child window in Electron renderer process(在 Electron 渲染器進程中創建子窗口時如何修復 BrowserWindow 不是構造函數錯誤) - IT屋-程序員軟件開發技術
mainWindow.loadURL(quot;https://localhost:3000/quot;) show white screen on Electron app(mainWindow.loadURL(https://localhost:3000/) 在 Electron 應用程序上顯示白屏)
Electron webContents executeJavaScript : Cannot execute script on second on loadURL(Electron webContents executeJavaScript:無法在第二個 loadURL 上執行腳本)
how to use electron browser window inside components in angular-cli?(如何在angular-cli的組件內使用電子瀏覽器窗口?)
ElectronJS - sharing redux store between windows?(ElectronJS - 在 Windows 之間共享 redux 存儲?)
How to access camera/webcamera inside electron app?(如何在電子應用程序中訪問相機/網絡攝像頭?)
主站蜘蛛池模板: 国产乱人伦精品一区二区 | 青青草国产在线观看 | 99久久久无码国产精品 | 成人久久久 | 三级在线免费 | 亚洲一区二区av在线 | 国产一区h| 国产激情偷乱视频一区二区三区 | 亚洲美女在线视频 | 日本成人在线观看网站 | 国产激情福利 | 欧美日韩亚洲国产 | a毛片| 97av在线 | 日韩国产中文字幕 | 欧美日韩一区二区三区四区五区 | 天天射天天干 | 久久久精品日本 | 国产麻豆乱码精品一区二区三区 | 久久伊人在 | 日韩成人在线视频 | 日本欧美在线观看视频 | 国产一级片精品 | 五月婷婷中文 | 成人3d动漫一区二区三区91 | 91精品久久久久久久久久 | 91国内产香蕉 | 日韩精品在线视频 | 四虎影音| 国产色 | 久久久久久国产精品久久 | 亚洲欧美一区二区三区国产精品 | 青青草一区二区三区 | 视频在线一区二区 | 中文字幕日韩欧美 | 亚洲天堂网站 | 亚洲高清视频在线 | 国产精品99 | 国内精品视频在线观看 | 亚州精品成人 | 国产www.|