Italicize editable input options (e.g. for the SPLT block)

pull/3/merge
jmoenig 2013-08-01 12:51:04 +02:00
rodzic 8dde1684f1
commit 060c5fcb9d
2 zmienionych plików z 11 dodań i 2 usunięć

Wyświetl plik

@ -6097,7 +6097,9 @@ InputSlotMorph.prototype.setContents = function (aStringOrFloat) {
isConstant = dta instanceof Array;
if (isConstant) {
dta = localize(dta[0]);
cnts.isItalic = !this.isReadOnly;
} else { // assume dta is a localizable choice if it's a key in my choices
cnts.isItalic = false;
if (this.choices !== null && this.choices[dta] instanceof Array) {
return this.setContents(this.choices[dta]);
}
@ -6535,7 +6537,13 @@ InputSlotMorph.prototype.mouseClickLeft = function (pos) {
};
InputSlotMorph.prototype.reactToKeystroke = function () {
var cnts;
if (this.constant) {
cnts = this.contents();
this.constant = null;
cnts.isItalic = false;
cnts.drawNew();
}
};
InputSlotMorph.prototype.reactToEdit = function () {

Wyświetl plik

@ -1837,3 +1837,4 @@ ______
130801
------
* Blocks, Threads: "whitespace" & other options in SPLIT reporter's dropdown
* Blocks: Italicize editable input options (e.g. for the SPLT block)