unpleasant characters

Поиск
Список
Период
Сортировка
От Euler Taveira de Oliveira
Тема unpleasant characters
Дата
Msg-id 4B263128.7050709@timbira.com
обсуждение исходный текст
Ответы Re: unpleasant characters  (Dave Page <dpage@pgadmin.org>)
Список 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 по дате отправления:

Предыдущее
От: Fred Janon
Дата:
Сообщение: Fwd: pgAdmin III: timestamp displayed in what time zone?
Следующее
От: Dave Page
Дата:
Сообщение: Re: unpleasant characters