Shortcuts now use the meta key on OSX

master
MBlanc 2014-12-10 09:56:10 +01:00
parent 7bb12511d9
commit 7356f67b78
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#include "object/level/parserparam.h"
#include "common/config.h"
#include "common/resources/inputstream.h"
#include "common/resources/outputstream.h"
@ -303,7 +304,11 @@ bool CEdit::EventProcess(const Event &event)
if ( event.type == EVENT_KEY_DOWN && m_bFocus )
{
bShift = ( (event.kmodState & KEY_MOD(SHIFT) ) != 0 );
#if PLATFORM_MACOSX
bControl = ( (event.kmodState & KEY_MOD(META) ) != 0);
#else
bControl = ( (event.kmodState & KEY_MOD(CTRL) ) != 0);
#endif
if ( (event.key.key == KEY(x) && !bShift && bControl) ||
(event.key.key == KEY(DELETE) && bShift && !bControl) )