1 /* 2 PPKeyConstants.h 3 4 Copyright 2013-2018 Josh Freeman 5 http://www.twilightedge.com 6 7 This file is part of PikoPixel for Mac OS X and GNUstep. 8 PikoPixel is a graphical application for drawing & editing pixel-art images. 9 10 PikoPixel is free software: you can redistribute it and/or modify it under 11 the terms of the GNU Affero General Public License as published by the 12 Free Software Foundation, either version 3 of the License, or (at your 13 option) any later version approved for PikoPixel by its copyright holder (or 14 an authorized proxy). 15 16 PikoPixel is distributed in the hope that it will be useful, but WITHOUT ANY 17 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 18 FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more 19 details. 20 21 You should have received a copy of the GNU Affero General Public License 22 along with this program. If not, see <http://www.gnu.org/licenses/>. 23 */ 24 25 26 #define kTabKey @"\t" 27 #define kTabKeyForXML @"\\T" 28 #define kTabKeyChar '\t' 29 #define kTabKeyCharForDisplay ((unichar) 0x21E5) 30 31 #define kReturnKey @"\r" 32 #define kReturnKeyForXML @"\\R" 33 #define kReturnKeyChar '\r' 34 #define kReturnKeyCharForDisplay ((unichar) 0x21A9) 35 36 #define kEscKey @"\e" 37 #define kEscKeyForXML @"\\E" 38 #define kEscKeyChar '\e' 39 #define kEscKeyCharForDisplay ((unichar) 0x238B) 40 41 #define kSpaceKey @" " 42 #define kSpaceKeyChar ' ' 43 #define kBottomBracketCharForSpaceKeyDisplay ((unichar) 0x23B5) 44 45 #define kDeleteKeyCharForDisplay ((unichar) 0x232B) 46 47 // Modifier key chars for display 48 #define kCommandKeyCharForDisplay ((unichar) 0x2318) 49 #define kAlternateKeyCharForDisplay ((unichar) 0x2325) 50 #define kControlKeyCharForDisplay ((unichar) 0x2303) 51 #define kShiftKeyCharForDisplay ((unichar) 0x21E7) 52 53 // Arrow key chars for display 54 #define kLeftArrowKeyCharForDisplay ((unichar) 0x2190) 55 #define kUpArrowKeyCharForDisplay ((unichar) 0x2191) 56 #define kRightArrowKeyCharForDisplay ((unichar) 0x2192) 57 #define kDownArrowKeyCharForDisplay ((unichar) 0x2193) 58