TextInputSystem.TextFieldAction
EnumEditor action for the text field (e.g. when user presses action key on keyboard).
- Snapchat: not supported
- SPECS: fully supported
- Camera Kit Web: not supported
- Camera Kit Mobile: not supported
- SnapchatNot supported — Available on SPECS only
- SPECSFully supported
- Camera Kit WebNot supported — Available on SPECS only
- Camera Kit MobileNot supported — Available on SPECS only
Since Lens Scripting v365
Editor action for the text field (e.g. when user presses action key on keyboard).
Index
Example
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);
})
Enumeration Members
Done
Done:
number
SPECS
Since
Lens Scripting Version 365
Go
Go:
number
SPECS
Since
Lens Scripting Version 365
NewLine
NewLine:
number
SPECS
Since
Lens Scripting Version 365
Next
Next:
number
SPECS
Since
Lens Scripting Version 365
Search
Search:
number
SPECS
Since
Lens Scripting Version 365
Send
Send:
number
SPECS
Since
Lens Scripting Version 365
Unset
Unset:
number
SPECS
Since
Lens Scripting Version 365