Editor action for the text field (e.g. when user presses action key on keyboard).
Lens Scripting Version 364
var options = new TextInputSystem.KeyboardOptions();options.enablePreview = false;options.keyboardType = TextInputSystem.KeyboardType.Text;options.returnKeyType = TextInputSystem.ReturnKeyType.Search;// When pressing the return key, the editor action type should be "search"options.onPerformEditorAction = function(actionType) { print("Return key pressed:", actionType);};script.createEvent("TapEvent").bind(function(){ global.textInputSystem.requestKeyboard(options);}) Copy
var options = new TextInputSystem.KeyboardOptions();options.enablePreview = false;options.keyboardType = TextInputSystem.KeyboardType.Text;options.returnKeyType = TextInputSystem.ReturnKeyType.Search;// When pressing the return key, the editor action type should be "search"options.onPerformEditorAction = function(actionType) { print("Return key pressed:", actionType);};script.createEvent("TapEvent").bind(function(){ global.textInputSystem.requestKeyboard(options);})
Editor action for the text field (e.g. when user presses action key on keyboard).
Since
Lens Scripting Version 364
Snap OS
Example