Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-01

some problems with the editor (little :o) )

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

olivier Guilbaud

Hello all !

I have found some probl�mes with the editor :

1�) [CTRL]+[T] :
sample
i have the syntax abbbbb; cddddddd
if the cursor pos is before the "a" char and CTRL+T, editor delete "abbbbb; " instead of delete "abbbbb"

2�) The Copy/Paste with KEdit or KWrite don't work

3�) Request [CTRL]+[SHIFT]+n with n = 0..9 for toggle Bookmark n and [CTRL]+n for goto bookmark (like DELPHI it is hard separer certain abitudes :o) )

Thanks

Olivier

Reply by email

Marc Weustink
to Mattias Gaertner: On Wed, 22 Jan 2003 23:25:18 +0100 Fixed. Fixed for KWrite (I didn't test KEdit).…
Michal Bukovjan wrote 19 lines
Mattias Gaertner wrote: >On Wed, 22 Jan 2003 23:25:18 +0100 >olivier Guilbaud wrote: [... snip ...] > >>3�) Request [CTRL]+[SHIFT]+n with n = 0..9 for toggle Bookmark n >> and [CTRL]+n for goto bookmark (like DELPHI it is hard separer >> certain abitudes :o) ) > >[CTRL]+[SHIFT]+n are somewhat special under gtk. The gtk-interface needs >only a good mapping from the gtk keys to the VK_ key constants. Maybe >someone can lookup the rules for these keys and give me hint. Looks like we need to fill in some constants in gtkproc.int/GetGTKKeyInfo, but I am not sure - should we map, for example GDK_DOLLAR (which is Shift+4) to VK_4? Or some other VK_ code not present in lcltype?

This is where I stopped implementing VK_ codes since I didn't know how to handle these. Ik you press a 4 you'll get a VK_4. On an US keyboard shift+4 is a $, but that isn't the case on all keyboards (isn't it a pound on english), so in order to solve this you need the keyboard layout.

Other ideas were to introduce extra VK_ codes to map special chars like $ (VK_DOLLAR)

For key combinations with ctrl and/or shift and a number is gets difficult.

And then I won't talk about special chars like `~-_=+[{]};:'",<.>/? etc.

What VK_ code is returned when you press Shift+4 on Windows?

Marc

Reply by email

Mattias Gaertner
to olivier Guilbaud: Hello all ! I have found some probl�mes with the editor : 1�) [CTRL]+[T] : sample i…
Show quoted text 9 lines
Hello all ! I have found some probl�mes with the editor : 1�) [CTRL]+[T] : sample i have the syntax abbbbb; cddddddd if the cursor pos is before the "a" char and CTRL+T, editor delete "abbbbb; " instead of delete "abbbbb"

Fixed.

2�) The Copy/Paste with KEdit or KWrite don't work

Fixed for KWrite (I didn't test KEdit).

3�) Request [CTRL]+[SHIFT]+n with n = 0..9 for toggle Bookmark n and [CTRL]+n for goto bookmark (like DELPHI it is hard separer certain abitudes :o) )

[CTRL]+[SHIFT]+n are somewhat special under gtk. The gtk-interface needs only a good mapping from the gtk keys to the VK_ key constants. Maybe someone can lookup the rules for these keys and give me hint.

Mattias

Reply by email

Michal Bukovjan
to olivier Guilbaud: Hello all ! I have found some probl�mes with the editor : 1�) [CTRL]+[T] : sample i…
Mattias Gaertner wrote
On Wed, 22 Jan 2003 23:25:18 +0100 olivier Guilbaud wrote:

[... snip ...]

Show quoted text 12 lines
>3�) Request [CTRL]+[SHIFT]+n with n = 0..9 for toggle Bookmark n > and [CTRL]+n for goto bookmark (like DELPHI it is hard separer > certain >abitudes :o) ) [CTRL]+[SHIFT]+n are somewhat special under gtk. The gtk-interface needs only a good mapping from the gtk keys to the VK_ key constants. Maybe someone can lookup the rules for these keys and give me hint.

Looks like we need to fill in some constants in
gtkproc.int/GetGTKKeyInfo, but I am not sure - should we map, for example GDK_DOLLAR (which is Shift+4) to VK_4? Or some other VK_ code not present in lcltype?

What VK_ code is returned when you press Shift+4 on Windows?

Michal

Reply by email