mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
change in default keyboard shortcuts
This commit is contained in:
@@ -1,22 +1,27 @@
|
||||
"use strict";
|
||||
|
||||
// hot keys are active also inside inputs and content editables
|
||||
jQuery.hotkeys.options.filterInputAcceptingElements = true;
|
||||
jQuery.hotkeys.options.filterContentEditable = true;
|
||||
jQuery.hotkeys.options.filterInputAcceptingElements = false;
|
||||
jQuery.hotkeys.options.filterContentEditable = false;
|
||||
jQuery.hotkeys.options.filterTextInputs = false;
|
||||
|
||||
$(document).bind('keydown', 'alt+m', () => {
|
||||
$(document).bind('keydown', 'alt+m', e => {
|
||||
const toggle = $(".hide-toggle");
|
||||
const hidden = toggle.css('visibility') === 'hidden';
|
||||
|
||||
toggle.css('visibility', hidden ? 'visible' : 'hidden');
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
// hide (toggle) everything except for the note content for distraction free writing
|
||||
$(document).bind('keydown', 'alt+t', () => {
|
||||
$(document).bind('keydown', 'alt+t', e => {
|
||||
const date = new Date();
|
||||
const dateString = formatDateTime(date);
|
||||
|
||||
link.addTextToEditor(dateString);
|
||||
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$(document).bind('keydown', 'f5', () => {
|
||||
|
||||
Reference in New Issue
Block a user