mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
note launchers by default open in the active note context but follow the same logic with ctrl/middle click as links
This commit is contained in:
@@ -60,6 +60,11 @@ function isMac() {
|
||||
return navigator.platform.indexOf('Mac') > -1;
|
||||
}
|
||||
|
||||
function isCtrlKey(evt) {
|
||||
return (!isMac() && evt.ctrlKey)
|
||||
|| (isMac() && evt.metaKey);
|
||||
}
|
||||
|
||||
function assertArguments() {
|
||||
for (const i in arguments) {
|
||||
if (!arguments[i]) {
|
||||
@@ -362,6 +367,7 @@ export default {
|
||||
now,
|
||||
isElectron,
|
||||
isMac,
|
||||
isCtrlKey,
|
||||
assertArguments,
|
||||
escapeHtml,
|
||||
stopWatch,
|
||||
|
||||
Reference in New Issue
Block a user