Author Topic: Non-standard chrs from number pad on keyboard.  (Read 293 times)

lettersquash

  • Newcomer
  • *
  • Posts: 13
    • View Profile
Non-standard chrs from number pad on keyboard.
« on: 12. February 2019, 20:52:07 »
Hi Chris, just to let you know, I'm getting a set of accented characters in the editor when I try to type numbers and operators on my keypad (English on Windows 7) and also the character. Actually, the numbers type numbers, but jump rows or columns first, like they've inserted control codes! The top row above QWERTY are fine of course, but it might be useful for number-heavy stuff to have the keypad.
Cheers,
~

chrisws

  • Moderator
  • Newcomer
  • *****
  • Posts: 33
    • View Profile
Re: Non-standard chrs from number pad on keyboard.
« Reply #1 on: 18. February 2019, 10:45:12 »
Thanks for your report. I'll try to fix it for the next update.

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 637
    • View Profile
    • Home of EGSL
Re: Non-standard chrs from number pad on keyboard.
« Reply #2 on: 24. February 2019, 11:53:54 »
Hi, with version 0.12.14 my keyboard doesn't work at all ...   :'(
I can only type capital letters, numbers via the numpad but only 1-9 ...
Some specs (if that might be  helpful):
Quote
System:    Host: markus-LnuxMint Kernel: 4.15.0-45-generic x86_64 bits: 64 Desktop: Cinnamon 4.0.9
           Distro: Linux Mint 19.1 Tessa
Machine:   Type: Desktop Mobo: ASUSTeK model: M5A78L-M/USB3 v: Rev X.0x serial: <root required> BIOS: American Megatrends
           v: 2101 date: 12/02/2014
CPU:       Topology: 8-Core model: AMD FX-8350 bits: 64 type: MCP L2 cache: 2048 KiB
           Speed: 1517 MHz min/max: 1400/4000 MHz Core speeds (MHz): 1: 1405 2: 1405 3: 1406 4: 1386 5: 1405 6: 1404 7: 1405
           8: 1403
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X] driver: amdgpu v: kernel
           Display: x11 server: X.Org 1.19.6 driver: amdgpu,ati unloaded: fbdev,modesetting,radeon,vesa
           resolution: 1920x1080~60Hz
           OpenGL: renderer: Radeon RX 570 Series (POLARIS10 DRM 3.23.0 4.15.0-45-generic LLVM 7.0.0) v: 4.5 Mesa 18.2.2
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] SBx00 Azalia driver: snd_hda_intel
           Device-2: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 580] driver: snd_hda_intel
           Sound Server: ALSA v: k4.15.0-45-generic
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
           IF: enp3s0 state: down mac: 30:85:a9:ae:f9:60
           Device-2: Ralink RT2501/RT2573 Wireless Adapter type: USB driver: rt73usb
           IF: wlx001f1f76f935 state: up mac: 00:1f:1f:76:f9:35
Drives:    Local Storage: total: 2.27 TiB used: 140.99 GiB (6.1%)
           ID-1: /dev/sda vendor: Western Digital model: WD10SPZX-22Z10T0 size: 931.51 GiB
           ID-2: /dev/sdb vendor: Seagate model: ST1000DM003-9YN162 size: 931.51 GiB
           ID-3: /dev/sdc vendor: Toshiba model: DT01ACA050 size: 465.76 GiB
Partition: ID-1: / size: 915.89 GiB used: 36.72 GiB (4.0%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 6.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdc5
Sensors:   System Temperatures: cpu: 36.0 C mobo: 34.0 C gpu: amdgpu temp: 28 C
           Fan Speeds (RPM): cpu: 1250 case-1: 0 gpu: amdgpu fan: 1426
Info:      Processes: 244 Uptime: 39m Memory: 11.71 GiB used: 1.25 GiB (10.7%) Shell: bash inxi: 3.0.27
The keyboard has a German layout.
Best regards,
Cybermonkey

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 637
    • View Profile
    • Home of EGSL
Re: Non-standard chrs from number pad on keyboard.
« Reply #3 on: 03. March 2019, 22:21:58 »
Okay, I compiled it from source, now it works almost ...
I am still having problems to enter "{[]}" which needs on a German keyboard the AltGr key (plus 7,8,9,0) which is a combination of Alt+Ctrl (in one key).



Any ideas how to fix this?
Best regards,
Cybermonkey

chrisws

  • Moderator
  • Newcomer
  • *****
  • Posts: 33
    • View Profile
Re: Non-standard chrs from number pad on keyboard.
« Reply #4 on: 09. March 2019, 00:13:23 »
If you would like to try debugging the underlying code, the problem area is in the file src/platform/sdl/runtime.cpp in function pollEvents()
You could try placing a few fprintf statements to see what's being received from SDL. Example: fprintf(stderr, "%d\n", mod)
There is also apparently a problem with Spanish keyboard layouts.
Is that screenshot a virtual keyboard that I could install on my linux machine?
« Last Edit: 09. March 2019, 04:19:57 by chrisws »

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 637
    • View Profile
    • Home of EGSL
Re: Non-standard chrs from number pad on keyboard.
« Reply #5 on: 09. March 2019, 10:00:44 »
Okay, thanks I will try that soon.
The screenshot is unfortunately just a keyboard from Wikipedia showing the German keyboard layout...
Best regards,
Cybermonkey