unpleasant characters - Mailing list pgadmin-hackers

From Euler Taveira de Oliveira
Subject unpleasant characters
Date
Msg-id 4B263128.7050709@timbira.com
Whole thread Raw
Responses Re: unpleasant characters
List pgadmin-hackers
Hi,

I saw a complain about unpleasant characters (listed above) that are generated
by Fx while using SQL Editor. I made an ugly patch to solve the issue. It is a
wxGTK 2.8.10 (debug and unicode build). I didn't test if it affects other
plataforms or versions. Maybe the right fix could be coding OnChar() to ignore
Fx key strokes (or other unpleasant characters)?

F2 = ŕ
F3 = Ŗ
F4 = ŗ
F8 = ś
F9 = Ŝ
F11 = Ş
F12 = ş


--
  Euler Taveira de Oliveira
  http://www.timbira.com/
Index: pgadmin/ctl/ctlSQLBox.cpp
===================================================================
--- pgadmin/ctl/ctlSQLBox.cpp    (revisão 8098)
+++ pgadmin/ctl/ctlSQLBox.cpp    (cópia de trabalho)
@@ -335,6 +335,10 @@
             break;
     }

+    // Ignore F1-F12 keys
+    if (event.GetKeyCode() >= WXK_F1 && event.GetKeyCode() <= WXK_F12)
+        return;
+
     // Block comment/uncomment
     if (event.GetKeyCode() == 'K')
     {

pgadmin-hackers by date:

Previous
From: Fred Janon
Date:
Subject: Fwd: pgAdmin III: timestamp displayed in what time zone?
Next
From: Dave Page
Date:
Subject: Re: unpleasant characters