コード例 #1
0
ファイル: __init__.py プロジェクト: webiumsk/WOT-0.9.12
def handleIMEEvent(event):
    import GUI
    handled = False
    import LanguageIndicator
    LanguageIndicator.handleIMEEvent(event)
    focused = getFocusedComponent()
    if focused is not None and hasattr(focused.script, 'handleIMEEvent'):
        handled = focused.script.handleIMEEvent(event)
    import BigWorld
    if BigWorld.ime.state == 'OFF':
        IME.hideAll()
    return handled
コード例 #2
0
def handleIMEEvent(event):
    import GUI
    handled = False
    import LanguageIndicator
    LanguageIndicator.handleIMEEvent(event)
    focused = getFocusedComponent()
    if focused is not None and hasattr(focused.script, 'handleIMEEvent'):
        handled = focused.script.handleIMEEvent(event)
    import BigWorld
    if BigWorld.ime.state == 'OFF':
        IME.hideAll()
    return handled