summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2014-08-08 14:03:43 +0200
committerkrzys-h <krzys_h@interia.pl>2014-08-08 14:03:43 +0200
commitea0615ee05b0812f2bb5d7d8b970b3f83999a319 (patch)
tree6be88369b99c2ddca6097033dd1fbb19bd0d52fa /src/ui
parent17fe2b3d61ea14a083a6e077b827d3e41361a8f8 (diff)
downloadcolobot-ea0615ee05b0812f2bb5d7d8b970b3f83999a319.tar.gz
colobot-ea0615ee05b0812f2bb5d7d8b970b3f83999a319.tar.bz2
colobot-ea0615ee05b0812f2bb5d7d8b970b3f83999a319.zip
Fixed #315
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/edit.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/edit.cpp b/src/ui/edit.cpp
index e2df62b..24d02e9 100644
--- a/src/ui/edit.cpp
+++ b/src/ui/edit.cpp
@@ -373,23 +373,23 @@ bool CEdit::EventProcess(const Event &event)
MoveChar(1, bControl, bShift);
return true;
}
- if ( event.key.key == KEY(UP) )
+ if ( event.key.key == KEY(UP) && m_bMulti )
{
MoveLine(-1, bControl, bShift);
return true;
}
- if ( event.key.key == KEY(DOWN) )
+ if ( event.key.key == KEY(DOWN) && m_bMulti )
{
MoveLine(1, bControl, bShift);
return true;
}
- if ( event.key.key == KEY(PAGEUP) ) // PageUp ?
+ if ( event.key.key == KEY(PAGEUP) && m_bMulti ) // PageUp ?
{
MoveLine(-(m_lineVisible-1), bControl, bShift);
return true;
}
- if ( event.key.key == KEY(PAGEDOWN) ) // PageDown ?
+ if ( event.key.key == KEY(PAGEDOWN) && m_bMulti ) // PageDown ?
{
MoveLine(m_lineVisible-1, bControl, bShift);
return true;