diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-17 09:27:31 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-17 09:27:31 +0300 |
commit | ad274c7046bdf10ccc64667fa2b59fa8052d6ecb (patch) | |
tree | 1fb13cc9501781bb0a81279d70717cbdb6878df3 /src/ui/labelwidget.c | |
parent | ce487d3d0b39ff9a74876527935e063243d96926 (diff) |
Working on "Save Page"
Suggest saving the content on the Unsupported MIME type error page.
Diffstat (limited to 'src/ui/labelwidget.c')
-rw-r--r-- | src/ui/labelwidget.c | 49 |
1 files changed, 1 insertions, 48 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c index 8b2506e7..28f43173 100644 --- a/src/ui/labelwidget.c +++ b/src/ui/labelwidget.c | |||
@@ -94,54 +94,7 @@ static iBool processEvent_LabelWidget_(iLabelWidget *d, const SDL_Event *ev) { | |||
94 | } | 94 | } |
95 | 95 | ||
96 | static void keyStr_LabelWidget_(const iLabelWidget *d, iString *str) { | 96 | static void keyStr_LabelWidget_(const iLabelWidget *d, iString *str) { |
97 | #if defined (iPlatformApple) | 97 | toString_Sym(d->key, d->kmods, str); |
98 | if (d->kmods & KMOD_CTRL) { | ||
99 | appendChar_String(str, 0x2303); | ||
100 | } | ||
101 | if (d->kmods & KMOD_ALT) { | ||
102 | appendChar_String(str, 0x2325); | ||
103 | } | ||
104 | if (d->kmods & KMOD_SHIFT) { | ||
105 | appendChar_String(str, 0x21e7); | ||
106 | } | ||
107 | if (d->kmods & KMOD_GUI) { | ||
108 | appendChar_String(str, 0x2318); | ||
109 | } | ||
110 | #else | ||
111 | if (d->kmods & KMOD_CTRL) { | ||
112 | appendCStr_String(str, "Ctrl+"); | ||
113 | } | ||
114 | if (d->kmods & KMOD_ALT) { | ||
115 | appendCStr_String(str, "Alt+"); | ||
116 | } | ||
117 | if (d->kmods & KMOD_SHIFT) { | ||
118 | appendCStr_String(str, "Shift+"); | ||
119 | } | ||
120 | if (d->kmods & KMOD_GUI) { | ||
121 | appendCStr_String(str, "Meta+"); | ||
122 | } | ||
123 | #endif | ||
124 | if (d->key == 0x20) { | ||
125 | appendCStr_String(str, "Space"); | ||
126 | } | ||
127 | else if (d->key == SDLK_LEFT) { | ||
128 | appendChar_String(str, 0x2190); | ||
129 | } | ||
130 | else if (d->key == SDLK_RIGHT) { | ||
131 | appendChar_String(str, 0x2192); | ||
132 | } | ||
133 | else if (d->key < 128 && (isalnum(d->key) || ispunct(d->key))) { | ||
134 | appendChar_String(str, upper_Char(d->key)); | ||
135 | } | ||
136 | else if (d->key == SDLK_BACKSPACE) { | ||
137 | appendChar_String(str, 0x232b); /* Erase to the Left */ | ||
138 | } | ||
139 | else if (d->key == SDLK_DELETE) { | ||
140 | appendChar_String(str, 0x2326); /* Erase to the Right */ | ||
141 | } | ||
142 | else { | ||
143 | appendCStr_String(str, SDL_GetKeyName(d->key)); | ||
144 | } | ||
145 | } | 98 | } |
146 | 99 | ||
147 | static void getColors_LabelWidget_(const iLabelWidget *d, int *bg, int *fg, int *frame1, int *frame2) { | 100 | static void getColors_LabelWidget_(const iLabelWidget *d, int *bg, int *fg, int *frame1, int *frame2) { |