functions for keyconfig (Thunderbird) 1.0.4