equal
deleted
inserted
replaced
2002 { // actions for the item loosing focus |
2002 { // actions for the item loosing focus |
2003 CMIDControlItem& control = ControlItem(iFocused); |
2003 CMIDControlItem& control = ControlItem(iFocused); |
2004 control.PostFocusTransferEvent(EFalse, aDirection); |
2004 control.PostFocusTransferEvent(EFalse, aDirection); |
2005 // setting highlight must be called before setting focus |
2005 // setting highlight must be called before setting focus |
2006 control.SetHighlight(EFalse); |
2006 control.SetHighlight(EFalse); |
|
2007 #ifdef RD_JAVA_S60_RELEASE_9_2 |
|
2008 if (IsChoiceGroup(control)) |
|
2009 { |
|
2010 CMIDChoiceGroupItem& cg = static_cast< CMIDChoiceGroupItem& >(control); |
|
2011 cg.SetHighlight(EFalse); |
|
2012 } |
|
2013 #endif // RD_JAVA_S60_RELEASE_9_2 |
2007 control.SetFocus(EFalse); |
2014 control.SetFocus(EFalse); |
2008 UpdateItemCommands(NULL, NULL); |
2015 UpdateItemCommands(NULL, NULL); |
2009 } |
2016 } |
2010 |
2017 |
2011 iFocused = aFocusIdx; |
2018 iFocused = aFocusIdx; |
2030 } |
2037 } |
2031 |
2038 |
2032 if (iFocused != KErrNotFound) |
2039 if (iFocused != KErrNotFound) |
2033 { // actions for the item gaining focus |
2040 { // actions for the item gaining focus |
2034 CMIDControlItem& control = ControlItem(iFocused); |
2041 CMIDControlItem& control = ControlItem(iFocused); |
2035 |
|
2036 SetHighlightBackgroundRects(); |
2042 SetHighlightBackgroundRects(); |
2037 |
|
2038 control.PostFocusTransferEvent(ETrue, aDirection); |
2043 control.PostFocusTransferEvent(ETrue, aDirection); |
2039 control.SetHighlight(ETrue); |
2044 control.SetHighlight(ETrue); |
|
2045 #ifdef RD_JAVA_S60_RELEASE_9_2 |
|
2046 if (IsChoiceGroup(control)) |
|
2047 { |
|
2048 CMIDChoiceGroupItem& cg = static_cast< CMIDChoiceGroupItem& >(control); |
|
2049 cg.SetHighlight(ETrue); |
|
2050 } |
|
2051 #endif // RD_JAVA_S60_RELEASE_9_2 |
2040 control.SetFocus(ETrue); |
2052 control.SetFocus(ETrue); |
2041 // msk: deliver also the possible MSK command to displayable |
2053 // msk: deliver also the possible MSK command to displayable |
2042 UpdateItemCommands(control.CommandList(), control.GetMSKCommand()); |
2054 UpdateItemCommands(control.CommandList(), control.GetMSKCommand()); |
2043 } |
2055 } |
2044 } |
2056 } |