Update 'Home'

master
Claire 2 years ago
parent
commit
a91715cdc2
  1. 2
      Home.md

2
Home.md

@ -96,7 +96,7 @@ private void txtData_KeyDown(CodeEditor sender, WebKeyEventArgs args)
}
```
The timer fires `TimerTick()` every half second. The first thing this function does is check if `isRendered` is `true`, and ends the function. Since we don't want the renderer to do anything if less than half a second has passed since the last `KeyDown` event, the function next checks to make sure at least half a second has passed since the value of `lastKeyUp`. Finally, if the function renders output, `isRendered` is set to true, and will be reset to `false` the next keypress detected by the Monaco control.
The timer fires `TimerTick()` every half second. The first thing this function does is check if `isRendered` is `true`, and if so, ends the function. Since we don't want the renderer to do anything if less than half a second has passed since the last `KeyDown` event, the function next checks to make sure at least half a second has passed since the value of `lastKeyUp`. Finally, if the function renders output, `isRendered` is set to true, and will be reset to `false` on the next keypress detected by the Monaco control.
```csharp
void TimerTick(object sender, object args)

Loading…
Cancel
Save