mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Fixed delete button showing on read-only lists
This commit is contained in:
parent
01a711674a
commit
2f3969bd92
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ public class ListCell extends Sprite {
|
|||
var hasFocus:Boolean = (e.type == FocusEvent.FOCUS_IN);
|
||||
frame.setColor(hasFocus ? focusedColor : normalColor);
|
||||
tf.textColor = (hasFocus ? 0 : 0xFFFFFF);
|
||||
setTimeout(hasFocus ? addDeleteButton : removeDeleteButton, 1);
|
||||
setTimeout(hasFocus && tf.type == 'input' ? addDeleteButton : removeDeleteButton, 1);
|
||||
}
|
||||
|
||||
private function removeDeleteButton():void {
|
||||
|
|
Loading…
Reference in a new issue