Fix locked mode of text tool

[#73648682]