Determine the 'Overtype' mode using Javascript

后端 未结 3 412
遥遥无期
遥遥无期 2021-01-25 10:41

We are creating a web app to replace an old-school green-screen application. In the green-screen app, as the user presses the Insert key to switch between overtype and insert mo

3条回答
  •  有刺的猬
    2021-01-25 11:11

    I suggest careful consideration of the 'overtype' feature. Does this behavior make sense in the web context, at all?

    What utility does the 'overtype' feature provides in the old ANSI presentation which is unavailable through the web?

    Unless I'm fully misunderstanding your question (apologies if so), I feel like the development intent may not align well with user expectations and typical web conventions.

    If the goal is to produce a page where:

    • by default 'insert' mode is disabled
    • user can trigger 'insert mode' for editing purposes

    ...then why not use dynamic form inputs?

    When a user clicks on a particular segment of HTML, a JavaScript is used to present the content as an element whose default value matches the chosen HTML tag.

    Once editing is completed the input is parsed, the page updated, and form input removed from display.

    Would this method suit your needs?

提交回复
热议问题