File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# PlainBelt
4
4
5
- > A toolbelt for your plain text
5
+ > A toolbelt for your plain text. Work offline. Cross-platform.
6
6
7
7
## Features
8
8
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ const Main = () => {
94
94
setSearch ( e . target . value ) ;
95
95
} ;
96
96
97
- ipcRenderer . on ( 'hot-key-called ' , ( ) => {
97
+ ipcRenderer . on ( 'hotkey-pressed ' , ( ) => {
98
98
history . push ( '/auto' ) ;
99
99
} ) ;
100
100
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ const Auto = () => {
65
65
</ a >
66
66
{ hotkey && (
67
67
< p className = "mt-10 opacity-70" >
68
- < em > Hot key </ em > : Control+Alt+Meta+Space (⌃⌥⌘Space in Mac)
68
+ < em > Hotkey </ em > : Control+Alt+Meta+Space (⌃⌥⌘Space in Mac)
69
69
</ p >
70
70
) }
71
71
</ section >
Original file line number Diff line number Diff line change @@ -150,12 +150,12 @@ const createTray = async () => {
150
150
tray . setToolTip ( 'PlainBelt' ) ;
151
151
} ;
152
152
153
- const registerHotKey = ( ) => {
153
+ const registerHotkey = ( ) => {
154
154
globalShortcut . unregisterAll ( ) ;
155
155
const hotkey = 'Control+Alt+Meta+Space' ;
156
156
const success = globalShortcut . register ( hotkey , async ( ) => {
157
157
await showWindow ( ) ;
158
- mainWindow ?. webContents . send ( 'hot-key-called ' ) ;
158
+ mainWindow ?. webContents . send ( 'hotkey-pressed ' ) ;
159
159
} ) ;
160
160
if ( ! success ) {
161
161
store . set ( 'hotkey' , '' ) ;
@@ -238,7 +238,7 @@ app.on('will-quit', () => {
238
238
239
239
app
240
240
. whenReady ( )
241
- . then ( registerHotKey )
241
+ . then ( registerHotkey )
242
242
. then ( createWindow )
243
243
. then ( createTray )
244
244
. catch ( console . log ) ;
You can’t perform that action at this time.
0 commit comments