The problem has been solved. This problem comes from the inputting method "I-bus" which is the default inputting method of fedora. After I remove it, I can use the keyboard to input English characters in SWB, but I can't input Chinese characters any more. It's really troublesome.