Mercurial > octave-dspies
changeset 18698:d565a5f5e06e stable
Disable default alt behavior on mac platform
* Vt102Emulation.cpp (sendKeyEvent): do not send esc char (033) on mac os
author | pantxo <pantxo.diribarne@gmail.com> |
---|---|
date | Fri, 28 Feb 2014 19:18:11 +0100 |
parents | 0b95b9c5ac71 |
children | e3fca7930c1e |
files | libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp Mon Apr 28 10:41:38 2014 -0700 +++ b/libgui/qterminal/libqterminal/unix/Vt102Emulation.cpp Fri Feb 28 19:18:11 2014 +0100 @@ -964,7 +964,9 @@ if ( modifiers & Qt::AltModifier && !(wantsAltModifier || wantsAnyModifier) && !event->text().isEmpty() ) { - textToSend.prepend("\033"); +#if !defined(Q_OS_MAC) + textToSend.prepend("\033"); +#endif } if ( entry.command() != KeyboardTranslator::NoCommand )