guoyunhe added a comment.
Uploaded latest code. It is unfinished. Just for anyone who may accidentally be interested. What works: 1. Make the widget a system tray icon. 2. The system tray icon can show current input method. 3. Right click the system tray icon, context menu allow you to configure keyboard and input method (Fcitx). What doesn't work: 1. Switch input method. ( @gpark 's work implemented that) 2. Switch fullwidth/halfwidth. 3. Switch punction. 4. Virtual keyboard. The main difficulty I had is **state jumping**: > When you click the system tray icon, the text field loses focus. Then you are not configuring input method for that field anymore. An idea for possible solution: 1. When you click the system tray icon, the state of KIMPanel will lock, remaining the state of your previous input field. 2. When you perform changes of input method, fullwidth, punction, etc., the change will not be performed immediately. 3. When you go back to input field, switching to the previous input method, the change will be applied. REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D22535 To: guoyunhe, ngraham, #vdg, #plasma, xuetianweng Cc: xuetianweng, gpark, hein, mart, ngraham, apol, plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas