Modernflyouts: Bug: information mistake about "insert" and "overwrite" when switch between ssh and applications

Created on 13 Dec 2020  路  5Comments  路  Source: ModernFlyouts-Community/ModernFlyouts

Describe the bug:
When I use vim in XShell-SSH and Word together, if I switch "insert" and "overwrite" modes in both the two software, it seems that the detection of the two modes would become a mess.

To Reproduce:
Steps to reproduce the behavior:

  1. go to a vim editor in ssh
  2. start an application (i.e. Word) in Windows
  3. try switching to insert mode in vim, and now it shows "overwrite mode", which is wrong.
  4. switch back to Word, press "Insert", now it should be "overwrite mode" but now it shows "insert mode".

OS Version:

  • Windows 10 Version: Windows 10 20H2

ModernFlyouts Version:

  • Version: 0.8.4.0
Bug

Most helpful comment

Yeah, I agree. Just showing "Insert Key" would be better.

All 5 comments

This issue was maybe partially fixed in #90. Looks like it came again, or was not fixed properly.

@ShankarBUS FYI

No,

This issue is kind of unfixable.

Hear me out....

Each application have their own insert button key state.

That is, a program's insert mode will only be toggled if it's active.

So, let's say there are 3 windows (consider Text editors) and you press the insert key. Only the active app's insert mode will be toggled. Others apps would be unchanged.

But ModernFlyouts run all the time so it's value may be different from what program have cached.

One workaround would be to change the "Insert mode"/"Overtype mode" to "Insert Key".

@ShankarBUS Thanks for reply.
When I created the issue I just considered that this may be a tough job.
I have a suggestion to relieve the uncomfortable feeling about this. Since it couldn't be solved automatically, a button to change the state or set to default (insert mode) could be given on the window which will show out when switching the mode. For now the only way is to restart the software.

Show the flyout within the active window in which you toggled the insert key you say?

That'll be much harder that how it is now.

The real problem is no application respects the global insert key state. They store their own state independently. But this is not a problem with Caps or Num because the system will take care of keys and won't let apps manage it themselves.

Insert key is handled by each application independently instead of the system.

The only immediate and easy workaround would be to show just "Insert key" instead of "Insert mode" or "Overtype mode".

Yeah, I agree. Just showing "Insert Key" would be better.

Was this page helpful?
0 / 5 - 0 ratings