made enter key not obligatory; when editing a field and pressing a navigation key, the value is directly entered. do revert if you disagree :-)
This commit is contained in:
parent
9f1bb50dbc
commit
cd0e1275a2
@ -821,6 +821,21 @@ void TrackView::editBiasValue(float amount)
|
|||||||
|
|
||||||
LRESULT TrackView::onKeyDown(UINT keyCode, UINT /*flags*/)
|
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)
|
if (editString.empty() && document->clientPaused)
|
||||||
{
|
{
|
||||||
switch (keyCode)
|
switch (keyCode)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user