Recent

Author Topic: 'm' and 'i' keys suddenly causing odd behavior! [SOLVED]  (Read 924 times)

Gizmo

  • Hero Member
  • *****
  • Posts: 702
'm' and 'i' keys suddenly causing odd behavior! [SOLVED]
« on: May 03, 2020, 09:54:46 pm »
Hi guys

I have a really weird issue with my Lazarus setup.

I'm using v2.0.4 and Linux Mint 19.3.

All the the alphabetical keys are OK except that when I press the 'i' key, it causes a tab, and when I press the 'm' key, it causes a new line carriage return. If I use any other program (text editor, Libreoffice etc) it is fine, and if I launch a Windows virtual machine, it is fine in that too. But Lazarus running on my Linux box, all of a sudden, causes this; never seen it in 10 years of using the IDE!.

I've tried blowing out the keyboard of crumbs etc! No fix.

Is there something in Lazarus (a setting or something?) that might be causing this that I have perhaps enabled or changed in error without realizing?

Thanks a lot
« Last Edit: May 21, 2020, 09:47:41 pm by Gizmo »
Lazarus 2.0.4 and fpc 3.0.4 - Linux Mint 19 LTS, Windows 10 64 and Mac OSX Catlina
Useful Page to remember : http://wiki.freepascal.org/Cross_compiling#From_Linux_x64_to_Linux_i386

winni

  • Hero Member
  • *****
  • Posts: 1615
Re: 'm' and 'i' keys suddenly causing odd behavior!
« Reply #1 on: May 03, 2020, 10:10:51 pm »
Hi!

Maybe your CTRL key hangs:

CTRL-I = TAB
CTRL-M = Cariage Return

Lift it up with a nail or a scissor???

Winni

Bart

  • Hero Member
  • *****
  • Posts: 3857
    • Bart en Mariska's Webstek
Re: 'm' and 'i' keys suddenly causing odd behavior!
« Reply #2 on: May 03, 2020, 10:36:17 pm »
There's a bugreport about m behaving as Ctrl+m.
So, you're not alone.

It hasn't been solved yet.

Bart

Gizmo

  • Hero Member
  • *****
  • Posts: 702
Re: 'm' and 'i' keys suddenly causing odd behavior!
« Reply #3 on: May 20, 2020, 11:03:07 pm »
This is driving me to madness.

I notice that if I try do a search, every key I press types twice. e.g. "e" becomes "ee". Yet in the main source code area, it is as before (everything OK except for "i" and "m"). It is only impacting Lazarus - no other tool. There has to be something in the settings causing it or conflicting but I have no idea where to start. I even tried resetting my keyboard layout to default in Linux Mint system settings - no avail. :-(
Lazarus 2.0.4 and fpc 3.0.4 - Linux Mint 19 LTS, Windows 10 64 and Mac OSX Catlina
Useful Page to remember : http://wiki.freepascal.org/Cross_compiling#From_Linux_x64_to_Linux_i386

Zoran

  • Hero Member
  • *****
  • Posts: 1574
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: 'm' and 'i' keys suddenly causing odd behavior!
« Reply #4 on: May 20, 2020, 11:42:02 pm »
I notice that if I try do a search, every key I press types twice. e.g. "e" becomes "ee".
This may be solveable: https://wiki.freepascal.org/Lazarus_Faq#Typing_in_edit_fields_generate_duplicate_letters

However, this may not be connected with the problem with "i" and "m".

Bart

  • Hero Member
  • *****
  • Posts: 3857
    • Bart en Mariska's Webstek
Re: 'm' and 'i' keys suddenly causing odd behavior!
« Reply #5 on: May 20, 2020, 11:51:32 pm »
I notice that if I try do a search, every key I press types twice. e.g. "e" becomes "ee".
This may be solveable: https://wiki.freepascal.org/Lazarus_Faq#Typing_in_edit_fields_generate_duplicate_letters

However, this may not be connected with the problem with "i" and "m".

I think this was solved in trunk recently.

Bart

Gizmo

  • Hero Member
  • *****
  • Posts: 702
Re: 'm' and 'i' keys suddenly causing odd behavior!
« Reply #6 on: May 21, 2020, 09:47:30 pm »
Zoran

Your instructions fixed it!

I disabled the IBus thingy and entered the 3 lines into the 2 or 3 files it mentions (creating one or two new files, editing one existing I think it was) as directed. Rebooted and solved! 'i' and 'm' now work, and I no longer have double characters for keypresses! Double bonus!

Thank you sir.
« Last Edit: May 22, 2020, 10:05:30 am by Gizmo »
Lazarus 2.0.4 and fpc 3.0.4 - Linux Mint 19 LTS, Windows 10 64 and Mac OSX Catlina
Useful Page to remember : http://wiki.freepascal.org/Cross_compiling#From_Linux_x64_to_Linux_i386

del

  • Full Member
  • ***
  • Posts: 185
Re: 'm' and 'i' keys suddenly causing odd behavior!
« Reply #7 on: May 22, 2020, 06:45:40 am »
Hi!

Maybe your CTRL key hangs:

CTRL-I = TAB
CTRL-M = Cariage Return

Lift it up with a nail or a scissor???

Winni

Instead of major surgery why not just hit "a" ("ctrl a" selects all)? It's probably not mechanical, it's probably a bug. When I had this problem I went through the whole alphabet and only had problems with "i" and "m". Here I was just typing characters, and you can see that the "i" was generating a preceding tab, and "m" was generating a preceding newline:

Quote
abcdefgh   ijkl
mnopqustuvwxyz1234567890
   ijkl
mjkl
mkl
ml
m
m
m
m
mMMMMMMMIIIIIIII

 

TinyPortal © 2005-2018