I have an electron app working on Mac OS, But once the app is moved to Applications , then I want to have shortcut key to launch directly without double clicking every time.
我有一个在Mac OS上工作的电子应用程序,但是一旦将应用程序移动到应用程序,那么我希望快捷键直接启动而不必每次都双击。
Like Command+KEY [Any key combination]
Even this should also work for Windows
像Command + KEY [任何组合键]即使这也适用于Windows
1 个解决方案
#1
1
As far as I know electron doesn't support shortcut key to open an electron application, because if the application is not running, so doesn't electron.
据我所知,电子不支持快捷键打开电子应用程序,因为如果应用程序没有运行,那么电子也不行。
Therefore what you are looking for cannot be provided out of the box. In OSX you have automator
and in this page you can follow the steps to create shortcut for opening the app.
因此,您无法提供所需的内容。在OSX中,您有自动播放器,在此页面中,您可以按照步骤创建打开应用程序的快捷方式。
How to Launch Any App with a Keyboard Shortcut
如何使用键盘快捷方式启动任何应用程序
In Windows 10 you can just modify the properties of the .exe and there you will find an option called Shortcut Key
. In this webpage you can see the steps:
在Windows 10中,您只需修改.exe的属性,在那里您将找到一个名为Shortcut Key的选项。在此网页中,您可以看到以下步骤:
Open programs with keyboard shortcuts in Windows 10
在Windows 10中使用键盘快捷键打开程序
#1
1
As far as I know electron doesn't support shortcut key to open an electron application, because if the application is not running, so doesn't electron.
据我所知,电子不支持快捷键打开电子应用程序,因为如果应用程序没有运行,那么电子也不行。
Therefore what you are looking for cannot be provided out of the box. In OSX you have automator
and in this page you can follow the steps to create shortcut for opening the app.
因此,您无法提供所需的内容。在OSX中,您有自动播放器,在此页面中,您可以按照步骤创建打开应用程序的快捷方式。
How to Launch Any App with a Keyboard Shortcut
如何使用键盘快捷方式启动任何应用程序
In Windows 10 you can just modify the properties of the .exe and there you will find an option called Shortcut Key
. In this webpage you can see the steps:
在Windows 10中,您只需修改.exe的属性,在那里您将找到一个名为Shortcut Key的选项。在此网页中,您可以看到以下步骤:
Open programs with keyboard shortcuts in Windows 10
在Windows 10中使用键盘快捷键打开程序