I don't know exactly how they do it, but I believe part of their app registers as an accessibility helper allowing it to spy on inputs and thus recognize of an input is a username and password, then pops up this little hover dialog to let you select. I used to use LastPass and this was a very nice feature.
It works a lot better than switching keyboards.
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Sync Type: Not Provided