kopia lustrzana https://github.com/backface/turtlestitch
Support "Keyboard Editing" setting in scripts toolbar
rodzic
ca4f94469f
commit
fb6d2a4da0
16
blocks.js
16
blocks.js
|
@ -6701,7 +6701,12 @@ ScriptsMorph.prototype.updateToolbar = function () {
|
|||
sf.toolBar = this.addToolbar();
|
||||
sf.add(sf.toolBar);
|
||||
}
|
||||
sf.toolBar.keyboardButton.refresh();
|
||||
if (this.enableKeyboard) {
|
||||
sf.toolBar.keyboardButton.show();
|
||||
sf.toolBar.keyboardButton.refresh();
|
||||
} else {
|
||||
sf.toolBar.keyboardButton.hide();
|
||||
}
|
||||
if (this.dropRecord) {
|
||||
if (this.dropRecord.lastRecord) {
|
||||
if (!sf.toolBar.undoButton.isVisible) {
|
||||
|
@ -6722,9 +6727,14 @@ ScriptsMorph.prototype.updateToolbar = function () {
|
|||
sf.toolBar.redoButton.hide();
|
||||
}
|
||||
}
|
||||
sf.toolBar.fixLayout();
|
||||
}
|
||||
sf.adjustToolBar();
|
||||
if (detect(
|
||||
sf.toolBar.children,
|
||||
function (each) {return each.isVisible; }
|
||||
)) {
|
||||
sf.toolBar.fixLayout();
|
||||
sf.adjustToolBar();
|
||||
}
|
||||
};
|
||||
|
||||
// ScriptsMorph sorting blocks and comments
|
||||
|
|
1
gui.js
1
gui.js
|
@ -2832,6 +2832,7 @@ IDE_Morph.prototype.settingsMenu = function () {
|
|||
function () {
|
||||
ScriptsMorph.prototype.enableKeyboard =
|
||||
!ScriptsMorph.prototype.enableKeyboard;
|
||||
myself.currentSprite.scripts.updateToolbar();
|
||||
if (ScriptsMorph.prototype.enableKeyboard) {
|
||||
myself.removeSetting('keyboard');
|
||||
} else {
|
||||
|
|
|
@ -3660,6 +3660,7 @@ Fixes:
|
|||
* Morphic: added stopEditing() event for keyboardReceiver
|
||||
* Blocks: added floating toggle for keyboard entry to scripts toolbar
|
||||
* GUI: make Snap! work in Safari 11 offline (file:// protocol) again, Sheesh
|
||||
* GUI, Blocks: Support "Keyboard Editing" setting in scripts toolbar
|
||||
|
||||
=== v4.1 release candidate ===
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue