Replace one comment with TODO and add @hidden annotation for clInputValueChanged()

This commit is contained in:
petoncle 2023-10-30 11:40:28 +01:00
parent fbc16a57f3
commit 270aafb5f5
2 changed files with 3 additions and 2 deletions

View file

@ -80,9 +80,9 @@ const commandline_state = {
*/
isVisible: false,
keyEvents: new Array<MinimalKey>(),
initialClInputValue: "",
refresh_completions,
state,
initialClInputValue: "",
}
// first theming of commandline iframe
@ -294,6 +294,7 @@ commandline_state.clInput.addEventListener("input", () => {
clInputValueChanged();
})
/** @hidden **/
function clInputValueChanged() {
const exstr = commandline_state.clInput.value
contentState.current_cmdline = exstr

View file

@ -203,7 +203,7 @@ function* ParserController() {
if (response.exstr) {
exstr = response.exstr
if (exstr.startsWith("fillcmdline ")) { // Ugh. That's ugly. I needed a way to know if this command is going to open the cmdline.
if (exstr.startsWith("fillcmdline ")) { // TODO That's ugly. I need a way to know if this command is going to open the command line. Is there a better way?
logger.debug("Starting buffering of page keys")
mustBufferPageKeysForClInput = true
bufferedPageKeys = []