mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 07:07:42 +00:00
Remove old text input methods
This commit is contained in:
@@ -108,16 +108,22 @@ void RootView::charKeyDown(unsigned long charCode, boo::EModifierKey mods, bool
|
||||
{
|
||||
if (m_view)
|
||||
m_view->charKeyDown(charCode, mods, isRepeat);
|
||||
//if (m_activeTextView)
|
||||
// m_activeTextView->charKeyDown(charCode, mods, isRepeat);
|
||||
if (m_activeTextView &&
|
||||
(mods & (boo::EModifierKey::Ctrl|boo::EModifierKey::Command)) != boo::EModifierKey::None)
|
||||
{
|
||||
if (charCode == 'c' || charCode == 'C')
|
||||
m_activeTextView->clipboardCopy();
|
||||
else if (charCode == 'x' || charCode == 'X')
|
||||
m_activeTextView->clipboardCut();
|
||||
else if (charCode == 'v' || charCode == 'V')
|
||||
m_activeTextView->clipboardPaste();
|
||||
}
|
||||
}
|
||||
|
||||
void RootView::charKeyUp(unsigned long charCode, boo::EModifierKey mods)
|
||||
{
|
||||
if (m_view)
|
||||
m_view->charKeyUp(charCode, mods);
|
||||
//if (m_activeTextView)
|
||||
// m_activeTextView->charKeyUp(charCode, mods);
|
||||
}
|
||||
|
||||
void RootView::specialKeyDown(boo::ESpecialKey key, boo::EModifierKey mods, bool isRepeat)
|
||||
@@ -157,12 +163,6 @@ void RootView::modKeyUp(boo::EModifierKey mod)
|
||||
m_activeTextView->modKeyUp(mod);
|
||||
}
|
||||
|
||||
void RootView::utf8FragmentDown(const std::string& str)
|
||||
{
|
||||
//if (m_activeTextView)
|
||||
// m_activeTextView->utf8FragmentDown(str);
|
||||
}
|
||||
|
||||
View* RootView::setContentView(View* view)
|
||||
{
|
||||
View* ret = m_view;
|
||||
|
||||
Reference in New Issue
Block a user