MCPcopy Index your code
hub / github.com/KilledByAPixel/LittleJS / stopEditing

Method stopEditing

plugins/uiSystem.js:1096–1106  ·  view source on GitHub ↗

Stop editing the text edited

()

Source from the content-addressed store, hash-verified

1094
1095 /** Stop editing the text edited */
1096 stopEditing()
1097 {
1098 if (!this.isKeyInputObject())
1099 return;
1100
1101 if (this.soundRelease)
1102 this.soundRelease.play();
1103 uiSystem.activeObject = undefined;
1104 uiSystem.keyInputObject = undefined;
1105 this.onChange();
1106 }
1107
1108 /** Key down event handler if this object is being edited
1109 * @param {KeyboardEvent} [e] */

Callers 2

onKeyDownMethod · 0.95
updateMethod · 0.95

Calls 3

isKeyInputObjectMethod · 0.80
onChangeMethod · 0.80
playMethod · 0.45

Tested by

no test coverage detected