Skip to content

Commit

Permalink
made text cursor instantly visible
Browse files Browse the repository at this point in the history
thanks, @DarDoro for reporting this!
  • Loading branch information
jmoenig committed Jan 30, 2021
1 parent 76ab655 commit 0a49180
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions morphic.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
written by Jens Mönig
[email protected]
Copyright (C) 2010-2020 by Jens Mönig
Copyright (C) 2010-2021 by Jens Mönig
This file is part of Snap!.
Expand Down Expand Up @@ -1280,7 +1280,7 @@

/*global window, HTMLCanvasElement, FileReader, Audio, FileList, Map*/

var morphicVersion = '2020-December-02';
var morphicVersion = '2021-January-30';
var modules = {}; // keep track of additional loaded modules
var useBlurredShadows = true;

Expand Down Expand Up @@ -12589,6 +12589,7 @@ WorldMorph.prototype.edit = function (aStringOrTextMorph) {
this.cursor = new CursorMorph(aStringOrTextMorph, this.keyboardHandler);
this.keyboardFocus = this.cursor;
aStringOrTextMorph.parent.add(this.cursor);
this.cursor.rerender();
if (MorphicPreferences.useSliderForInput) {
if (!aStringOrTextMorph.parentThatIsA(MenuMorph)) {
this.slide(aStringOrTextMorph);
Expand Down

0 comments on commit 0a49180

Please sign in to comment.