Browse Source

add find (page-search) hotkey

Paul Frazee 4 years ago
parent
commit
e40f79baa8
2 changed files with 12 additions and 1 deletions
  1. 10
    0
      app/lib/menu.js
  2. 2
    1
      app/lib/muxrpc-ipc.js

+ 10
- 0
app/lib/menu.js View File

@@ -69,6 +69,16 @@ module.exports = function (window) {
69 69
           label: 'Select All',
70 70
           accelerator: 'Command+A',
71 71
           selector: 'selectAll:'
72
+        },
73
+        {
74
+          type: 'separator'
75
+        },
76
+        {
77
+          label: 'Find',
78
+          accelerator: 'Command+F',
79
+          click: function () {
80
+            window.rpc.triggerFind()
81
+          }
72 82
         }
73 83
       ]
74 84
     },

+ 2
- 1
app/lib/muxrpc-ipc.js View File

@@ -5,7 +5,8 @@ var pullipc    = require('pull-ipc')
5 5
 
6 6
 var clientApi = {
7 7
   navigate: 'async',
8
-  contextualToggleDevTools: 'async'
8
+  contextualToggleDevTools: 'async',
9
+  triggerFind: 'async'
9 10
 }
10 11
 
11 12
 module.exports = function (window, sbot, params) {

Loading…
Cancel
Save