mirror of
https://github.com/Kenshin/simpread.git
synced 2026-02-01 15:41:29 +00:00
Add read mode shortcuts loigc.
This commit is contained in:
parent
d851089b0d
commit
c1099dbabc
@ -48,6 +48,7 @@ chrome.runtime.onMessage.addListener( function( request, sender, sendResponse )
|
||||
*/
|
||||
function bindShortcuts() {
|
||||
Mousetrap.bind( [ storage.focus.shortcuts.toLowerCase() ], focuseMode );
|
||||
Mousetrap.bind( [ storage.read.shortcuts.toLowerCase() ], readMode );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -32,6 +32,7 @@ const name = "simpread",
|
||||
},
|
||||
read = {
|
||||
version : "2017-01-07",
|
||||
shortcuts : "A A",
|
||||
theme : "",
|
||||
fontfamily: "",
|
||||
fontsize : 14,
|
||||
@ -58,6 +59,15 @@ class Storage {
|
||||
return simpread[ mode.focus ];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get simpread.read data structure
|
||||
*
|
||||
* @return {object} simpread["read"]
|
||||
*/
|
||||
get read() {
|
||||
return simpread[ mode.read ];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get current data structure
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user