diff --git a/po/pt_BR.po b/po/pt_BR.po index 50a91c9..3c7a815 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: pw3270 5.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-06-05 12:30-0300\n" +"POT-Creation-Date: 2013-06-05 12:32-0300\n" "PO-Revision-Date: 2013-05-08 14:30-0300\n" "Last-Translator: Perry Werneck \n" "Language-Team: Português <>\n" diff --git a/src/pw3270/v3270/keyboard.c b/src/pw3270/v3270/keyboard.c index 45247d9..471d18f 100644 --- a/src/pw3270/v3270/keyboard.c +++ b/src/pw3270/v3270/keyboard.c @@ -107,6 +107,7 @@ v3270_draw_shift_status(terminal); } +#ifdef KEY_FLAG_ALT if(keyval_is_alt()) { if(status) @@ -115,6 +116,7 @@ terminal->keyflags &= ~KEY_FLAG_ALT; v3270_draw_alt_status(terminal); } +#endif // KEY_FLAG_ALT } diff --git a/src/pw3270/v3270/oia.c b/src/pw3270/v3270/oia.c index ff350ec..b9eaa72 100644 --- a/src/pw3270/v3270/oia.c +++ b/src/pw3270/v3270/oia.c @@ -887,7 +887,9 @@ static void update_text_field(v3270 *terminal, gboolean flag, V3270_OIA_FIELD id void v3270_draw_alt_status(v3270 *terminal) { +#ifdef KEY_FLAG_ALT update_text_field(terminal,terminal->keyflags & KEY_FLAG_ALT,V3270_OIA_ALT,'A'); +#endif // KEY_FLAG_ALT } void v3270_draw_ins_status(v3270 *terminal) diff --git a/src/pw3270/v3270/private.h b/src/pw3270/v3270/private.h index 95fc3a6..966d13f 100644 --- a/src/pw3270/v3270/private.h +++ b/src/pw3270/v3270/private.h @@ -62,7 +62,10 @@ G_BEGIN_DECLS #define OIA_TOP_MARGIN 2 #define KEY_FLAG_SHIFT 0x0001 - #define KEY_FLAG_ALT 0x0002 + + #ifndef WIN32 + #define KEY_FLAG_ALT 0x0002 + #endif // !WIN32 enum { -- libgit2 0.21.2