diff --git a/css/prism.css b/css/prism.css index d75255f4..a9964e85 100644 --- a/css/prism.css +++ b/css/prism.css @@ -21,6 +21,7 @@ pre[class*="language-"] { word-break: normal; word-wrap: normal; line-height: 1.5; + cursor: text; -moz-tab-size: 4; -o-tab-size: 4; diff --git a/js/animations/timeline.js b/js/animations/timeline.js index 63e9131e..a18bc405 100644 --- a/js/animations/timeline.js +++ b/js/animations/timeline.js @@ -911,7 +911,6 @@ Interface.definePanels(() => { } Blockbench.setStatusBarText(); if (values_changed) { - Undo.addKeyframeCasualties(deleted); Animation.selected.setLength(); Undo.finishEdit('Drag keyframes'); } else { diff --git a/js/interface/interface.js b/js/interface/interface.js index fdb9cf2d..aa401fa9 100644 --- a/js/interface/interface.js +++ b/js/interface/interface.js @@ -606,7 +606,9 @@ $(document).keyup(function(event) { Interface.createElement = (tag, attributes = {}, content) => { let el = document.createElement(tag); for (let key in attributes) { - el.setAttribute(key, attributes[key]); + if (attributes[key] !== undefined) { + el.setAttribute(key, attributes[key]); + } } if (typeof content == 'string') el.textContent = content; if (content instanceof Array) {