diff options
author | jmarshallnz <jmarshallnz@svn> | 2009-11-10 09:22:51 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2009-11-10 09:22:51 +0000 |
commit | 39ca03fed65d152ea2b3798045b103e98fcd1d3d (patch) | |
tree | a38c89ba0895d422550c712f519eaa6a3ee5fd79 /guilib/GUIEditControl.cpp | |
parent | 998e945f83cdac06c40214a85aec11af705f6320 (diff) |
fixed: Ticket #7641 - Home and End didn't work in edit controls (or the virtual keyboard)
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@24487 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIEditControl.cpp')
-rw-r--r-- | guilib/GUIEditControl.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/guilib/GUIEditControl.cpp b/guilib/GUIEditControl.cpp index 86e6428bd5..9e9262f056 100644 --- a/guilib/GUIEditControl.cpp +++ b/guilib/GUIEditControl.cpp @@ -133,6 +133,18 @@ bool CGUIEditControl::OnAction(const CAction &action) { // input from the keyboard (vkey, not ascii) BYTE b = action.id & 0xFF; + if (b == 0x24) // home + { + m_cursorPos = 0; + UpdateText(false); + return true; + } + else if (b == 0x23) // end + { + m_cursorPos = m_text2.length(); + UpdateText(false); + return true; + } if (b == 0x25 && m_cursorPos > 0) { // left m_cursorPos--; |