content operations
This commit is contained in:
parent
b6e5153c1f
commit
a61f37ad61
8 changed files with 62 additions and 58 deletions
|
@ -12,15 +12,6 @@ export default {
|
|||
CMD_OPEN: 'cmd.open',
|
||||
CMD_TABS_OPEN: 'cmd.tabs.open',
|
||||
CMD_BUFFER: 'cmd.buffer',
|
||||
SCROLL_LINES: 'scroll.lines',
|
||||
SCROLL_PAGES: 'scroll.pages',
|
||||
SCROLL_TOP: 'scroll.top',
|
||||
SCROLL_BOTTOM: 'scroll.bottom',
|
||||
SCROLL_LEFT: 'scroll.left',
|
||||
SCROLL_RIGHT: 'scroll.right',
|
||||
FOLLOW_START: 'follow.start',
|
||||
HISTORY_PREV: 'history.prev',
|
||||
HISTORY_NEXT: 'history.next',
|
||||
|
||||
// User input
|
||||
INPUT_KEY_PRESS: 'input.key,press',
|
||||
|
|
|
@ -21,7 +21,10 @@ export function exec(operation, sender) {
|
|||
case operations.ZOOM_NEUTRAL:
|
||||
return zooms.neutral();
|
||||
default:
|
||||
return Promise.resolve();
|
||||
return browser.tabs.sendMessage(sender.tab.id, {
|
||||
type: 'require.content.operation',
|
||||
operation
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue