be4 traversing mod
This commit is contained in:
parent
2c86691bb8
commit
cb48d0f408
9 changed files with 123 additions and 64 deletions
|
|
@ -7,7 +7,8 @@ var path = require('path'),
|
|||
theme = require('./theme')
|
||||
|
||||
var widgetHashTable = {},
|
||||
sessionBackups = {}
|
||||
sessionBackups = {},
|
||||
clipboard = {clipboard: null, idClipboard: null}
|
||||
|
||||
module.exports = {
|
||||
|
||||
|
|
@ -16,7 +17,9 @@ module.exports = {
|
|||
ipc.send('connected')
|
||||
|
||||
var recentSessions = settings.read('recentSessions')
|
||||
|
||||
ipc.send('sessionList', recentSessions, clientId)
|
||||
ipc.send('clipboard', clipboard, clientId)
|
||||
|
||||
if (settings.read('readOnly')) {
|
||||
ipc.send('readOnly')
|
||||
|
|
@ -458,6 +461,13 @@ module.exports = {
|
|||
})
|
||||
|
||||
|
||||
},
|
||||
|
||||
clipboard: function(data, clientId) {
|
||||
|
||||
clipboard = data
|
||||
ipc.send('clipboard', data, null, clientId)
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ module.exports = function(options={}) {
|
|||
window.reload()
|
||||
})
|
||||
|
||||
shortcut.register(window,'F11',function(){
|
||||
if (options.fullscreen) shortcut.register(window,'F11',function(){
|
||||
window.setFullScreen(!window.isFullScreen())
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue