TiddlyWikiFormula icon indicating copy to clipboard operation
TiddlyWikiFormula copied to clipboard

Mod Loader disables keyboard shortcuts

Open ittayd opened this issue 2 years ago • 2 comments

When the plugin is enabled in my wiki, no keyboard shortcut works. Even default ones like alt-n. If I set all keyboard breakpoints in dev tools, none of them are called. After I disable it and reload, everything works.

ittayd avatar May 24 '22 07:05 ittayd

Due to loading order issues, the modloader currently overshadows one specific javascript file from the TiddlyWiki core (which normally manages which other scripts are loaded at boot time). Most likely, this script has fallen out of date with the latest versions of TiddlyWiki and needs to be updated. I would accept a pull request.

EvanBalster avatar May 24 '22 19:05 EvanBalster

The javascript in question is $:/core/startup.js.

The modloader currently overwrites it with this modified startup.js which delays loading some things long enough for the modloader to be able to do its work: https://github.com/EvanBalster/TiddlyWikiFormula/blob/master/plugins/ebalster_modloader/%24__core_modules_startup.js.tid

...Which might be out of date with TiddlyWiki's implementation here: https://github.com/Jermolene/TiddlyWiki5/blob/ac022ec79f05715f62fd8382ebb6b49cd1c8f960/core/modules/startup/startup.js

EvanBalster avatar May 24 '22 19:05 EvanBalster