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 231587 - DVORK keyboard mapping not honored when ctrl key pressed
Summary: DVORK keyboard mapping not honored when ctrl key pressed
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 7.3.1
Hardware: Macintosh (x86) Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 233617 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-20 16:56 UTC by edburns
Modified: 2013-10-04 08:20 UTC (History)
3 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 edburns 2013-06-20 16:56:58 UTC
Environment
===========

Mac OS X 10.7.5
Java 1.6.0_45
NetBeans 7.3.1

Configuration
=============

In System preferences, set keyboard layout to DVORAK and remap the caps lock key to be the ctrl key.

In NetBeans preferences, set the keyboard mapping to emacs.

Steps to reproduce
==================

1. In the text editor, put the text on a line and press Ctrl-e (e in the DVORAK layout is where d is in QWERTY) to go to the end of the line.

Instead of going to the end of the line, Netbeans deletes a character.

2. In the text editor, put the text on a line and press Ctrl-.  This causes the cursor to go to the end of the line, apparently because . in the DVORAK layout is where e is in QWERTY.

Observation
===========

It seems the keymap reverts to QWERTY when the Ctrl key is pressed.

If I bring up the keyboard viewer, I do see that Ctrl-e is shown to be pressed when I press Ctrl-e.
Comment 1 edburns 2013-06-27 14:23:54 UTC
Any status on this?  It keeps me from using NetBeans 7.3.1.
Comment 2 Svata Dedic 2013-08-23 10:34:31 UTC
*** Bug 233617 has been marked as a duplicate of this bug. ***
Comment 3 jdavidbakr 2013-08-28 11:56:20 UTC
This somehow appears to have gotten into a recent update to 7.3, because I'm suddenly experiencing this issue in 7.3.
Comment 4 jdavidbakr 2013-08-28 11:57:46 UTC
A more direct indicator of the symptom is that in the key mapping preferences when I go to "search in shortcuts" and enter a keystroke (such as the one for "Format") it shows Ctrl+Shift+Y instead of Ctrl+Shift+F
Comment 5 Svata Dedic 2013-09-03 12:09:28 UTC
This seems as a defect in JDK/MacOS X, specifically the method KeyEvent.getExtendedKeyCode() fails to produce the correct key code (returns VK_UNDEFINED).

The KeyEvent that arrives to the NetBeans for pressing "E" key has the following properties on both Linux (working) and MacOS X (not working):
* keyText='E'
* keyChar='.'
* keyCode=69

extendedKeyCode returns 46 on Linux, 0 on MacOS X.

Should start to work OK once fixed on JDK/JRE side. Sadly the Oracle Bug database is failing when I try to enter a new bug report. Will try later today or when I get to an internal site.
Comment 6 edburns 2013-09-14 09:39:29 UTC
I am very disappointed this is not fixed in 7u40.

Svata, did you ever find time to file this against the JDK?

Thanks,

Ed
Comment 7 edburns 2013-10-03 22:00:06 UTC
FWIW, I filed 17556909 against the JDK.
Comment 8 Martin Fousek 2013-10-04 08:20:00 UTC
(In reply to edburns from comment #7)
> FWIW, I filed 17556909 against the JDK.

Thank you Ed.