Does this code try to show the virtual keyboard? If so using the OSystem API (setFeatureState with kFeatureVirtualKeyboard) seems like a much better/cleaner solution. In fact this could help other ports too. Can you explain where this is helpful for the Tizen port?