Hello,
In general Blockly does not fire blur events for fields :/ However there are two ideas I have that might work for you:
1) Filter events based on their
type. IE don't switch the workspace on change events. But I'm not sure if this will work for you because I'm not sure why you're switching the workspaces hehe.
2) For text input fields specifically, you can assign a function to the
onFinishEditing_ property of the field. This function will then be called whenever the text input field loses focus (ie when the user is finished editing the field). For example, you can do something like this:
```
Blockly.Blocks['my_block'] = {
init: function() {
var field = new Blockly.TextInput();
field.onFinishEditing_ = this.myTriggerWorkspaceSwitchFn;
},
myTriggerWorkspaceSwitchFn = function() { ... }
}
```
I hope that helps! If you have any further questions please reply!
--Beka