mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
moved dialog entrypoints into bootstrap, fixes
This commit is contained in:
@@ -236,6 +236,14 @@ function randomString(len) {
|
||||
return text;
|
||||
}
|
||||
|
||||
function bindShortcut(keyboardShortcut, handler) {
|
||||
$(document).bind('keydown', keyboardShortcut, e => {
|
||||
handler();
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
export default {
|
||||
reloadApp,
|
||||
showMessage,
|
||||
@@ -266,5 +274,6 @@ export default {
|
||||
getHost,
|
||||
download,
|
||||
toObject,
|
||||
randomString
|
||||
randomString,
|
||||
bindShortcut
|
||||
};
|
||||
Reference in New Issue
Block a user