mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 03:39:51 +00:00
Merge pull request #10 from DocHoncho/int-entry-fix
Tweaked IntEntry behavior - Fix problem selecting the whole text each time a key is pressed and the mouse is over the IntEntry widget
This commit is contained in:
commit
2eb84124d0
@ -64,7 +64,11 @@ bool IntEntry::onProcessMessage(Message* msg)
|
||||
// text is automatically selected.
|
||||
case kMouseEnterMessage:
|
||||
requestFocus();
|
||||
selectText(0, -1);
|
||||
break;
|
||||
|
||||
// Reset value if it's out of bounds when focus is lost
|
||||
case kFocusLeaveMessage:
|
||||
setValue(MID(m_min, getValue(), m_max));
|
||||
break;
|
||||
|
||||
case kMouseDownMessage:
|
||||
|
Loading…
x
Reference in New Issue
Block a user