fix keyboard behavior on Firefox