This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 68630 - When using Czech keyboard layout, I cannot enter some keys
Summary: When using Czech keyboard layout, I cannot enter some keys
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: David Simonek
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2005-11-14 10:33 UTC by fordfrog
Modified: 2008-12-22 23:55 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fordfrog 2005-11-14 10:33:27 UTC
When using Czech keyboard, I cannot enter some numbers (2 to 6) using
Shift+<appropriate key> on the main part of keyboard (not the NumPad). I think
some other keys may be affected too. I use laptop.
Comment 1 Marian Mirilovic 2005-11-14 10:48:55 UTC
NB5.0-Beta2 (200511131001) JDK 1.5.0_05
Linux RH9/Gnome

You are right, using Slovak keyboard I am not able to write 2,3,4,5,6. Keys with
other numbers work perfectly.

I am able to write these numbers to any of other editors/terminals.
Comment 2 David Simonek 2005-11-14 11:39:24 UTC
SwingSet2 demo works well?
Comment 3 David Simonek 2005-11-14 11:47:10 UTC
On WinXP, everything works well for me. As usual...
Comment 4 fordfrog 2005-11-14 11:57:46 UTC
In SwingSet2 it doesn't work either.
I use sun-jdk-1.4.2.09. I use Gentoo distribution and there isn't sun-jdk-1.5
available yet.
Comment 5 Marian Mirilovic 2005-11-14 12:10:42 UTC
Ok, after short investigation:
- it works in JDK 6.0(b60)
- it doesn't work in Notepad demo from JDK 1.5.0_06

So in my opinion it's a bug of the JDK...
Comment 6 David Simonek 2005-11-14 12:38:56 UTC
Yes, I found JDK bug #6225595, already fixed in JDK 1.6:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6225595

Note that in comments to the bug, there are detailed instructions hot to make
czech/slovak keyboard work correctly even on earlier JDKs. Hope that will work
for you.
Comment 7 David Simonek 2005-11-14 12:43:18 UTC
Oops, sorry, I just found that workaround steps are not visible directly from
the link above, so I'm copying it here for you:

-------
This bug does not appear when the keyboard definition in /etc/X11/xorg.conf
is the following:

Section "InputDevice"

    Identifier  "Keyboard1"
    Driver      "kbd"

    Option "AutoRepeat" "500 30"

#  ---- THIS IS IMPORTANT ----
    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc104"
    Option "XkbLayout"  "us,cz"
    Option "XkbOptions" "grp:alt_shift_toggle"
    
EndSection

Two layouts (us and cz in this case) need to be set for the keyboard to work
properly. After launching X, the us layout is the default so it is necessary
to switch to czech using Alt+Shift. Then Czech keyboard will work correctly
in Java applications.

NOTE:
If the two layouts are switched in xorg.conf (Option "XkbLayout"  "cz,us"),
then after launching X, Czech layout will be the default. But in this case,
the bug persists and the keyboard will _not_ work correctly.
If there is only czech layout in xorg.conf (Option "XkbLayout"  "cz"), then
the bug persists as well.


When using KDE as desktop environment, it is not necessary to edit xorg.conf
(KDE can override xorg.conf settings). To make Czech keyboard work in KDE,
it is necessary to:

1. Launch KDE Control Center
2. Choose Regional & Accessibility -> Keyboard Layout
3. Check "Enable Keyboard layout"
4. Make sure that "Czech" layout is in the "Active layouts" list - if it is not,
   move it there from the "Available layouts" list
5. Click on "Czech" in the "Active layout" list
6. Check "Include latin layout" checkbox near the bottom of the window
7. Click on "Apply"

Czech keyboard will now work correctly in Java applications.
------

Hope that mentioned workaround will work for you.
Comment 8 fordfrog 2005-11-14 12:52:01 UTC
Thank you for inclusion of the workarounds. I tried the KDE workaround and it
works :-)
Comment 9 Marian Mirilovic 2006-01-18 15:16:50 UTC
JDK issue was fixed to JDK 6.0 - verified