add find (page-search) hotkey

This commit is contained in:
Paul Frazee 2015-08-27 13:56:18 -05:00
parent 6635d28c55
commit e40f79baa8
2 changed files with 12 additions and 1 deletions

View File

@ -69,6 +69,16 @@ module.exports = function (window) {
label: 'Select All',
accelerator: 'Command+A',
selector: 'selectAll:'
},
{
type: 'separator'
},
{
label: 'Find',
accelerator: 'Command+F',
click: function () {
window.rpc.triggerFind()
}
}
]
},

View File

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