moved dialog entrypoints into bootstrap, fixes

This commit is contained in:
azivner
2018-03-25 19:49:33 -04:00
parent 19c605a9a8
commit 341f47f0f2
15 changed files with 62 additions and 102 deletions

View File

@@ -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
};