fix toggling new note button

This commit is contained in:
Thomas Hervey
2018-07-17 14:25:06 -04:00
parent af2b67663b
commit ea2fffbd49

View File

@@ -99,7 +99,11 @@ export function uiModes(context) {
modes.forEach(function(mode) {
keybinding.on(mode.key, function() {
if (editable()) {
// TODO: allow zooming out beyond minZoom when adding new note. Currently prevented
if (
(editable() && mode.id !== 'add-note')
|| (toggleNewNote() && mode.id === 'add-note')
) {
if (mode.id === context.mode().id) {
context.enter(modeBrowse(context));
} else {