From cb1f25d9509d82f42c19b8a22df760f0fbcb61aa Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Mon, 6 Oct 2014 09:46:42 -0400 Subject: [PATCH] Add Enum to handle meta keys on Mac OS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Part of the rb 120323 René J.V. Bertin rjvberti @gmai .com (cherry picked from commit b2cf60009e6d0ba8bcc4ebdc69fa4d0f76df7209) --- src/Session.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Session.h b/src/Session.h index 85109ceed..07b59095b 100644 --- a/src/Session.h +++ b/src/Session.h @@ -51,6 +51,17 @@ class TerminalDisplay; class ZModemDialog; class HistoryType; +/** + * Platform-specific main shortcut "opcode": + */ +enum Modifier { +#ifdef Q_OS_MAC + ACCEL = Qt::META +#else + ACCEL = Qt::CTRL +#endif +}; + /** * Represents a terminal session consisting of a pseudo-teletype and a terminal emulation. * The pseudo-teletype (or PTY) handles I/O between the terminal process and Konsole.