• Konrad Mohrfeldt's avatar
    fix: sticky toolbar disappears whenever it’s used. refs #597 · fd2dc360
    Konrad Mohrfeldt authored
    as the toolbar is not directly a part of the codemirror editor
    editor.codemirror.hasFocus() returns false when one of the toolbar
    buttons is clicked. the new check checks both the editor itself and if
    the container element contains the currently focused element in the
    page. setTimeout is necessary to avoid false results for the contains
    call because at the time when our callback is executed activeElement
    might refer to the body element as the browser is in-between states.
    reschedulung our handler code in the event code will ensure that
    document.activeElement get’s the correct element.
    fd2dc360
Name
Last commit
Last update
core Loading commit data...
debian Loading commit data...
docs Loading commit data...
features Loading commit data...
make.d Loading commit data...
media Loading commit data...
offline-website Loading commit data...
res Loading commit data...
stadt Loading commit data...
webpack Loading commit data...
.bumpversion.cfg Loading commit data...
.coveragerc Loading commit data...
.editorconfig Loading commit data...
.flake8 Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.modernizrrc Loading commit data...
.postcssrc.js Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS.md Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
manage.py Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
requirements.txt Loading commit data...
setup.py Loading commit data...
webpack.config.js Loading commit data...