Commit e363cd791bba38bbd74c97a0731c6bb0351c57cc
1 parent
aa558fcc
Exists in
master
and in
5 other branches
Tratamento da tecla alt não funciona muito bem no windows, desativando
Showing
4 changed files
with
9 additions
and
2 deletions
Show diff stats
po/pt_BR.po
| @@ -5,7 +5,7 @@ msgid "" | @@ -5,7 +5,7 @@ msgid "" | ||
| 5 | msgstr "" | 5 | msgstr "" |
| 6 | "Project-Id-Version: pw3270 5.0\n" | 6 | "Project-Id-Version: pw3270 5.0\n" |
| 7 | "Report-Msgid-Bugs-To: \n" | 7 | "Report-Msgid-Bugs-To: \n" |
| 8 | -"POT-Creation-Date: 2013-06-05 12:30-0300\n" | 8 | +"POT-Creation-Date: 2013-06-05 12:32-0300\n" |
| 9 | "PO-Revision-Date: 2013-05-08 14:30-0300\n" | 9 | "PO-Revision-Date: 2013-05-08 14:30-0300\n" |
| 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
| 11 | "Language-Team: Português <>\n" | 11 | "Language-Team: Português <>\n" |
src/pw3270/v3270/keyboard.c
| @@ -107,6 +107,7 @@ | @@ -107,6 +107,7 @@ | ||
| 107 | v3270_draw_shift_status(terminal); | 107 | v3270_draw_shift_status(terminal); |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | +#ifdef KEY_FLAG_ALT | ||
| 110 | if(keyval_is_alt()) | 111 | if(keyval_is_alt()) |
| 111 | { | 112 | { |
| 112 | if(status) | 113 | if(status) |
| @@ -115,6 +116,7 @@ | @@ -115,6 +116,7 @@ | ||
| 115 | terminal->keyflags &= ~KEY_FLAG_ALT; | 116 | terminal->keyflags &= ~KEY_FLAG_ALT; |
| 116 | v3270_draw_alt_status(terminal); | 117 | v3270_draw_alt_status(terminal); |
| 117 | } | 118 | } |
| 119 | +#endif // KEY_FLAG_ALT | ||
| 118 | 120 | ||
| 119 | } | 121 | } |
| 120 | 122 |
src/pw3270/v3270/oia.c
| @@ -887,7 +887,9 @@ static void update_text_field(v3270 *terminal, gboolean flag, V3270_OIA_FIELD id | @@ -887,7 +887,9 @@ static void update_text_field(v3270 *terminal, gboolean flag, V3270_OIA_FIELD id | ||
| 887 | 887 | ||
| 888 | void v3270_draw_alt_status(v3270 *terminal) | 888 | void v3270_draw_alt_status(v3270 *terminal) |
| 889 | { | 889 | { |
| 890 | +#ifdef KEY_FLAG_ALT | ||
| 890 | update_text_field(terminal,terminal->keyflags & KEY_FLAG_ALT,V3270_OIA_ALT,'A'); | 891 | update_text_field(terminal,terminal->keyflags & KEY_FLAG_ALT,V3270_OIA_ALT,'A'); |
| 892 | +#endif // KEY_FLAG_ALT | ||
| 891 | } | 893 | } |
| 892 | 894 | ||
| 893 | void v3270_draw_ins_status(v3270 *terminal) | 895 | void v3270_draw_ins_status(v3270 *terminal) |
src/pw3270/v3270/private.h
| @@ -62,7 +62,10 @@ G_BEGIN_DECLS | @@ -62,7 +62,10 @@ G_BEGIN_DECLS | ||
| 62 | #define OIA_TOP_MARGIN 2 | 62 | #define OIA_TOP_MARGIN 2 |
| 63 | 63 | ||
| 64 | #define KEY_FLAG_SHIFT 0x0001 | 64 | #define KEY_FLAG_SHIFT 0x0001 |
| 65 | - #define KEY_FLAG_ALT 0x0002 | 65 | + |
| 66 | + #ifndef WIN32 | ||
| 67 | + #define KEY_FLAG_ALT 0x0002 | ||
| 68 | + #endif // !WIN32 | ||
| 66 | 69 | ||
| 67 | enum | 70 | enum |
| 68 | { | 71 | { |