A CSS-fix is the better solution and solves every menu flickering. Also scroll down - later posts give more improvements.
The keyboard has nothing to do with flickering … at least nothing directly. It decreases the Firefox window size and menus start to flicker when they cannot render inside of Firefox windows. Minimizing keyboard just give some additional space that reduce the chance to flicker, but it fix nothing.