mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 02:30:42 +01:00
make sure all keyboard shortcuts use utility methods to not break mobile frontend
This commit is contained in:
@@ -45,7 +45,7 @@ function showInFullText(e) {
|
||||
|
||||
$showInFullTextButton.click(showInFullText);
|
||||
|
||||
$dialog.bind('keydown', 'ctrl+return', showInFullText);
|
||||
utils.bindElShortcut($dialog, 'ctrl+return', showInFullText);
|
||||
|
||||
export default {
|
||||
showDialog
|
||||
|
||||
@@ -53,7 +53,7 @@ async function sendForm() {
|
||||
|
||||
$importButton.click(sendForm);
|
||||
|
||||
$dialog.bind('keydown', 'ctrl+return', sendForm);
|
||||
utils.bindElShortcut($dialog, 'ctrl+return', sendForm);
|
||||
|
||||
// for CKEditor integration (button on block toolbar)
|
||||
window.glob.importMarkdownInline = importMarkdownInline;
|
||||
|
||||
@@ -127,7 +127,7 @@ async function showTables() {
|
||||
}
|
||||
}
|
||||
|
||||
$query.bind('keydown', 'ctrl+return', execute);
|
||||
utils.bindElShortcut($query, 'ctrl+return', execute);
|
||||
|
||||
$executeButton.click(execute);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user