def charPressed(self, evt):
    object = evt.GetEventObject()
    key = evt.GetKeyCode()
    modifiers = evt.GetModifiers()
    if (config.main['UI']['stdKeyHandling'] and (key in (wx.WXK_END, wx.WXK_HOME))):
        evt.Skip()
    elif ((key == wx.WXK_HOME) and (not modifiers)):
        object.SetInsertionPoint(0)
    elif ((key == wx.WXK_END) and (not modifiers)):
        object.SetInsertionPointEnd()
    elif ((key == wx.WXK_HOME) and (modifiers == wx.MOD_SHIFT)):
        object.SetSelection(object.GetInsertionPoint(), 0)
    elif ((key == wx.WXK_END) and (modifiers == wx.MOD_SHIFT)):
        object.SetSelection(object.GetInsertionPoint(), len(object.GetValue()))
    elif ((key == 1) and (modifiers == wx.MOD_CONTROL)):
        object.SetInsertionPoint(0)
        object.SetSelection(0, len(object.GetValue()))
    else:
        evt.Skip()
def charPressed(self, evt):
    object = evt.GetEventObject()
    key = evt.GetKeyCode()
    modifiers = evt.GetModifiers()
    if (config.main['UI']['stdKeyHandling'] and (key in (wx.WXK_END, wx.WXK_HOME))):
        evt.Skip()
    elif ((key == wx.WXK_HOME) and (not modifiers)):
        object.SetInsertionPoint(0)
    elif ((key == wx.WXK_END) and (not modifiers)):
        object.SetInsertionPointEnd()
    elif ((key == wx.WXK_HOME) and (modifiers == wx.MOD_SHIFT)):
        object.SetSelection(object.GetInsertionPoint(), 0)
    elif ((key == wx.WXK_END) and (modifiers == wx.MOD_SHIFT)):
        object.SetSelection(object.GetInsertionPoint(), len(object.GetValue()))
    elif ((key == 1) and (modifiers == wx.MOD_CONTROL)):
        object.SetInsertionPoint(0)
        object.SetSelection(0, len(object.GetValue()))
    else:
        evt.Skip()