Hardware key loggers, which are impossible to find by antivirus, can't take screenshots. Software keyloggers and other such malware are defended against with antivirus, but hardware keyloggers must be defended against with design.
Your browser will probably remember your password afterwards, so the usability decrease isn't even that bad. And that's not a security flaw either, because hardware keyloggers don't see the autofill values.