View Issue Details

IDProjectCategoryView StatusLast Update
0026926LazarusWidgetsetpublic2020-04-28 10:23
ReporterTorsten Erxleben Assigned ToZeljan Rikalo  
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
PlatformLinuxOSKubuntu 32bit 
Summary0026926: Problem with doubled chars still exists see Bug 0023140
Descriptionsee 0023140
TagsNo tags attached.
Fixed in Revision
LazTarget-
WidgetsetGTK 2
Attached Files

Relationships

related to 0023140 resolvedZeljan Rikalo Lazarus double charcter input in many text input components 
has duplicate 0027401 feedbackZeljan Rikalo Lazarus One keypress, two characters 
has duplicate 0031104 resolvedJuha Manninen Lazarus All keys come twice 
has duplicate 0030863 assignedZeljan Rikalo Lazarus keys typed in the source editor are duplicated 
has duplicate 0036976 closedZeljan Rikalo Patches Doubled keys in ide editor 
related to 0031335 new Lazarus Inspector object and source code editor: Double accent and without an accent. Latin keyboard. 

Activities

Zeljan Rikalo

2014-10-22 16:30

developer   ~0078522

What's the name of your input module (GTK_IM_MODULE) ?

Torsten Erxleben

2014-10-22 16:47

reporter   ~0078524

GTK_IM_MODULE=scim
ibus is removed

Zeljan Rikalo

2014-10-22 17:18

developer   ~0078527

Ok, then please: in gtk2proc.inc
find nested function BlackListIMModule

{$IFDEF UNIX}
Result := g_getenv('GTK_IM_MODULE') = 'scim-bridge';
{$ELSE}

replace with
{$IFDEF UNIX}
Result := (g_getenv('GTK_IM_MODULE') = 'scim-bridge') or (g_getenv('GTK_IM_MODULE') = 'scim');
{$ELSE}

and make an trial to see if it's ok.
Please, return back feedback about it.

Torsten Erxleben

2014-10-22 17:42

reporter   ~0078530

Last edited: 2014-10-22 17:44

View 2 revisions

Thanks, your suggested modification works.


Changed function:

  function BlackListIMModule: boolean;
  begin
    {$IFDEF UNIX}
    Result := (g_getenv('GTK_IM_MODULE') = 'scim-bridge') or (g_getenv('GTK_IM_MODULE') = 'scim');
    {$ELSE}
    Result := False;
    {$ENDIF}
  end;

Torsten Erxleben

2014-10-22 18:35

reporter   ~0078538

Last edited: 2014-10-22 18:35

View 2 revisions

Okay..., Sourceeditor interpret letter m as CR now. Rest seems to work.

Zeljan Rikalo

2014-10-22 18:41

developer   ~0078539

Last edited: 2014-10-22 18:41

View 2 revisions

You mean typing letter m in source editor it shows char(13) ?

Torsten Erxleben

2014-10-22 18:49

reporter   ~0078540

No, letter m create a new line (german system, english lazarus).

Andreas Schneider

2014-11-09 13:39

reporter   ~0079042

Just in case: Ubuntu 14.10 seems to have "xim" as default, which also causes doubled key strokes, as it seems.

Zeljan Rikalo

2014-11-12 09:52

developer   ~0079105

@aksdb, please test with above changes. http://bugs.freepascal.org/view.php?id=26926#c78527 , just add xim into list of GTK_IM_MODULE

Alexander Koblov

2015-04-27 09:26

reporter   ~0083260

I can confirm that problem still exists when GTK_IM_MODULE="xim". Above changes plus "xim" fixes problem:

  function BlackListIMModule: boolean;
  begin
    {$IFDEF UNIX}
    Result := (g_getenv('GTK_IM_MODULE') = 'scim-bridge') or (g_getenv('GTK_IM_MODULE') = 'scim') or (g_getenv('GTK_IM_MODULE') = 'xim');
    {$ELSE}
    Result := False;
    {$ENDIF}
  end;

As I see trunk don't contain above changes. Is it planned to include it?

Zeljan Rikalo

2015-04-27 11:09

developer   ~0083264

Yes, I'll include xim into blacklist.

Gerard V

2016-12-18 10:16

reporter   ~0096878

I tried the above fix with my spanish keyboard(adding xim to BlackListIMModule) and now it doesn't duplicate characters, but it eats the accents + the 'ñ' and 'ç' chars, and 'm' acts as return.

Zeljan Rikalo

2017-06-03 15:11

developer   ~0100832

Please test against trunk with patch I've attached to https://bugs.freepascal.org/view.php?id=30863 (gtk2_im_module_fix.diff)

CudaText man

2018-08-28 22:35

reporter   ~0110351

Last edited: 2018-08-28 22:35

View 2 revisions

Bump

I see issue - this, or similar to this.
ATSynEdit (on GTK2) gives OnKeyDown twice per each typed letter.
It gives problems to me :(

Zeljan Rikalo

2020-04-28 10:23

developer   ~0122485

Please test with r63089

Issue History

Date Modified Username Field Change
2014-10-22 16:13 Torsten Erxleben New Issue
2014-10-22 16:20 Reinier Olislagers Relationship added related to 0023140
2014-10-22 16:30 Zeljan Rikalo Note Added: 0078522
2014-10-22 16:47 Torsten Erxleben Note Added: 0078524
2014-10-22 17:18 Zeljan Rikalo LazTarget => -
2014-10-22 17:18 Zeljan Rikalo Note Added: 0078527
2014-10-22 17:18 Zeljan Rikalo Assigned To => Zeljan Rikalo
2014-10-22 17:18 Zeljan Rikalo Status new => feedback
2014-10-22 17:42 Torsten Erxleben Note Added: 0078530
2014-10-22 17:42 Torsten Erxleben Status feedback => assigned
2014-10-22 17:44 Torsten Erxleben Note Edited: 0078530 View Revisions
2014-10-22 18:35 Torsten Erxleben Note Added: 0078538
2014-10-22 18:35 Torsten Erxleben Note Edited: 0078538 View Revisions
2014-10-22 18:41 Zeljan Rikalo Note Added: 0078539
2014-10-22 18:41 Zeljan Rikalo Note Edited: 0078539 View Revisions
2014-10-22 18:49 Torsten Erxleben Note Added: 0078540
2014-11-09 13:39 Andreas Schneider Note Added: 0079042
2014-11-12 09:52 Zeljan Rikalo Note Added: 0079105
2015-02-03 23:45 Juha Manninen Relationship added has duplicate 0027401
2015-04-27 09:26 Alexander Koblov Note Added: 0083260
2015-04-27 11:09 Zeljan Rikalo Note Added: 0083264
2016-12-11 15:33 Juha Manninen Relationship added has duplicate 0031104
2016-12-11 16:20 Juha Manninen Relationship added has duplicate 0030863
2016-12-18 10:16 Gerard V Note Added: 0096878
2017-02-14 01:20 Martin Friebe Relationship added related to 0031335
2017-06-03 15:11 Zeljan Rikalo Note Added: 0100832
2017-06-03 15:11 Zeljan Rikalo Status assigned => feedback
2018-08-28 22:35 CudaText man Note Added: 0110351
2018-08-28 22:35 CudaText man Note Edited: 0110351 View Revisions
2020-04-26 21:41 Martin Friebe Relationship added has duplicate 0035707
2020-04-26 21:42 Martin Friebe Relationship deleted has duplicate 0035707
2020-04-26 21:42 Martin Friebe Relationship added has duplicate 0036976
2020-04-28 10:23 Zeljan Rikalo Note Added: 0122485