Skip to content

Commit

Permalink
made enter key not obligatory; when editing a field and pressing a na…
Browse files Browse the repository at this point in the history
…vigation key, the value is directly entered. do revert if you disagree :-)
  • Loading branch information
eteeselink authored and kusma committed Mar 19, 2010
1 parent 9f1bb50 commit cd0e127
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions editor/trackview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,21 @@ void TrackView::editBiasValue(float amount)

LRESULT TrackView::onKeyDown(UINT keyCode, UINT /*flags*/)
{
if (!editString.empty())
{
switch(keyCode)
{
case VK_UP:
case VK_DOWN:
case VK_LEFT:
case VK_RIGHT:
case VK_PRIOR:
case VK_NEXT:
case VK_HOME:
case VK_END:
editEnterValue();
}
}
if (editString.empty() && document->clientPaused)
{
switch (keyCode)
Expand Down

0 comments on commit cd0e127

Please sign in to comment.