Use proper attribute to set text readonly on binary widget

issue10171
review330491003
This commit is contained in:
Cédric Krier committed 2021-03-16 22:05:31 +01:00
1 parent 5b1b316d53
commit de946c6409
1 file changed
+3 -3
+3 -3
View File
@@ -3912,7 +3912,7 @@ function eval_pyson(value){
this.update_buttons(Boolean(size));
},
key_press: function(evt) {
var editable = !this.wid_text.prop('readonly');
var editable = !this.text.prop('readonly');
if (evt.which == Sao.common.F3_KEYCODE && editable) {
this.new_();
evt.preventDefault();
@@ -3930,8 +3930,8 @@ function eval_pyson(value){
set_readonly: function(readonly) {
this.but_select.prop('disabled', readonly);
this.but_clear.prop('disabled', readonly);
if (this.wid_text) {
this.wid_text.prop('readonly', readonly);
if (this.text) {
this.text.prop('readonly', readonly);
}
}
});