From 31d933b6a84a138c0c1de0fa5da8289e827444e5 Mon Sep 17 00:00:00 2001 From: CST1229 <68464103+CST1229@users.noreply.github.com> Date: Tue, 6 May 2025 20:31:20 +0200 Subject: [PATCH] Make field cursors reflect the entire click target area instead of just the field itself --- core/field.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/field.js b/core/field.js index da9941dbc5..1fc8c3a621 100644 --- a/core/field.js +++ b/core/field.js @@ -296,11 +296,11 @@ Blockly.Field.prototype.updateEditable = function() { if (this.sourceBlock_.isEditable()) { Blockly.utils.addClass(group, 'blocklyEditableText'); Blockly.utils.removeClass(group, 'blocklyNonEditableText'); - this.fieldGroup_.style.cursor = this.CURSOR; + this.getClickTarget_().style.cursor = this.CURSOR; } else { Blockly.utils.addClass(group, 'blocklyNonEditableText'); Blockly.utils.removeClass(group, 'blocklyEditableText'); - this.fieldGroup_.style.cursor = ''; + this.getClickTarget_().style.cursor = ''; } };