diff --git a/specter/lib/TextField.cpp b/specter/lib/TextField.cpp index 9ccc320de..482261895 100644 --- a/specter/lib/TextField.cpp +++ b/specter/lib/TextField.cpp @@ -110,7 +110,7 @@ void TextField::mouseDown(const boo::SWindowCoord& coord, boo::EMouseButton butt { size_t startPos = m_text->reverseSelectGlyph(coord.pixel[0] - m_text->subRect().location[0]); setCursorPos(startPos); - m_dragging |= 1 << int(button); + m_dragging |= size_t(1 << int(button)); m_dragStart = startPos; rootView().setActiveDragView(this); } @@ -451,9 +451,6 @@ void TextField::clearSelectionRange() for (size_t i=0 ; iupdateGlyphs(); - - int focusRect[2] = {subRect().location[0], subRect().location[1]}; - rootView().window()->claimKeyboardFocus(focusRect); } void TextField::resized(const boo::SWindowRect& root, const boo::SWindowRect& sub)