diff options
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/GHOST_Types.h | 1 | ||||
-rw-r--r-- | intern/ghost/intern/GHOST_SystemCocoa.mm | 1 | ||||
-rw-r--r-- | intern/ghost/intern/GHOST_SystemX11.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_Types.h b/intern/ghost/GHOST_Types.h index 29508a83733..b3e560ab4b4 100644 --- a/intern/ghost/GHOST_Types.h +++ b/intern/ghost/GHOST_Types.h @@ -249,6 +249,7 @@ typedef enum { GHOST_kKeyQuote = 0x27, GHOST_kKeyComma = ',', GHOST_kKeyMinus = '-', + GHOST_kKeyPlus = '+', GHOST_kKeyPeriod = '.', GHOST_kKeySlash = '/', diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm index 4db945d31f7..bf44d938a47 100644 --- a/intern/ghost/intern/GHOST_SystemCocoa.mm +++ b/intern/ghost/intern/GHOST_SystemCocoa.mm @@ -240,6 +240,7 @@ static GHOST_TKey convertKey(int rawCode, unichar recvChar, UInt16 keyAction) switch (recvChar) { case '-': return GHOST_kKeyMinus; + case '+': return GHOST_kKeyPlus; case '=': return GHOST_kKeyEqual; case ',': return GHOST_kKeyComma; case '.': return GHOST_kKeyPeriod; diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp index 0c87ee17cb0..dde63badb91 100644 --- a/intern/ghost/intern/GHOST_SystemX11.cpp +++ b/intern/ghost/intern/GHOST_SystemX11.cpp @@ -1500,6 +1500,7 @@ convertXKey(KeySym key) GXMAP(type, XK_quoteright, GHOST_kKeyQuote); GXMAP(type, XK_quoteleft, GHOST_kKeyAccentGrave); GXMAP(type, XK_minus, GHOST_kKeyMinus); + GXMAP(type, XK_plus, GHOST_kKeyPlus); GXMAP(type, XK_slash, GHOST_kKeySlash); GXMAP(type, XK_backslash, GHOST_kKeyBackslash); GXMAP(type, XK_equal, GHOST_kKeyEqual); |