Commit e363cd791bba38bbd74c97a0731c6bb0351c57cc

Authored by perry.werneck@gmail.com
1 parent aa558fcc

Tratamento da tecla alt não funciona muito bem no windows, desativando

po/pt_BR.po
... ... @@ -5,7 +5,7 @@ msgid ""
5 5 msgstr ""
6 6 "Project-Id-Version: pw3270 5.0\n"
7 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 9 "PO-Revision-Date: 2013-05-08 14:30-0300\n"
10 10 "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n"
11 11 "Language-Team: Português <>\n"
... ...
src/pw3270/v3270/keyboard.c
... ... @@ -107,6 +107,7 @@
107 107 v3270_draw_shift_status(terminal);
108 108 }
109 109  
  110 +#ifdef KEY_FLAG_ALT
110 111 if(keyval_is_alt())
111 112 {
112 113 if(status)
... ... @@ -115,6 +116,7 @@
115 116 terminal->keyflags &= ~KEY_FLAG_ALT;
116 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 887  
888 888 void v3270_draw_alt_status(v3270 *terminal)
889 889 {
  890 +#ifdef KEY_FLAG_ALT
890 891 update_text_field(terminal,terminal->keyflags & KEY_FLAG_ALT,V3270_OIA_ALT,'A');
  892 +#endif // KEY_FLAG_ALT
891 893 }
892 894  
893 895 void v3270_draw_ins_status(v3270 *terminal)
... ...
src/pw3270/v3270/private.h
... ... @@ -62,7 +62,10 @@ G_BEGIN_DECLS
62 62 #define OIA_TOP_MARGIN 2
63 63  
64 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 70 enum
68 71 {
... ...