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 177580 - "?" acts as if I were in insertion mode
Summary: "?" acts as if I were in insertion mode
Status: RESOLVED INVALID
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: -S1S-
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-25 06:02 UTC by alied
Modified: 2009-12-02 10:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
My editor setings (in case it's) of use (24.52 KB, application/octet-stream)
2009-11-25 06:04 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2009-11-25 06:02:57 UTC
I had seen this in recent builds, but hadn't noticed it till today. When you press the "?" key (or the "?" character, couldn't tell), the editor acts as if I were inserting, the next character is deleted. From the user point of view, the character at the caret position is replaced by a "?".
It does not matter whether I'm editing a coment, an executable line, or a .properties file. Insert mode behaves exactly the same (this time as expected).

I have a Spanish keyboard (with the Ñ) on an Olivetti Olibook Series 500:

Keyboard Name	Teclado PS/2 estándar
Keyboard Type	IBM enhanced (101- or 102-key) keyboard
Keyboard Layout	Spanish
ANSI Code Page	1252 - @%SystemRoot%\system32\mlang.dll,-4612
OEM Code Page	850
Repeat Delay	1
Repeat Rate	31


Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-4379-on-091125)
Java: 1.7.0-ea; Java HotSpot(TM) Client VM 16.0-b06
System: Windows Vista version 6.0 running on x86; Cp1252; es_ES (nb)
Comment 1 alied 2009-11-25 06:04:52 UTC
Created attachment 91664 [details]
My editor setings (in case it's) of use
Comment 2 Vitezslav Stejskal 2009-11-30 05:23:26 UTC
Umm, could you please try the same with java notepad (eg. run java -jar $JAVA_HOME/demo/jfc/Notepad/Notepad.jar)? Thanks
Comment 3 alied 2009-11-30 06:54:42 UTC
Thanx for the tip:
from Java's Notepad demo:
Original text:
123456789
caret positioned after the '5'
Pressed '?'(Shift+'):
12345?789
Pressed ':
123456'789

After inserting the ? after the '5', on the edit menu, there appear two undo actions:
-"Undo addition"
-"Undo deletion"
(the original texts are in Spanish:
-"Deshacer adición" and 
-"Deshacer supresión")
This is the order in the undo list, so actions are done in the reverse order.

So, this might be a bug in Java?
If so, reporting it from you would get more attention than if I file the issue by my self.
Comment 4 Vitezslav Stejskal 2009-12-02 02:35:47 UTC
(In reply to comment #3)
> Thanx for the tip:
> from Java's Notepad demo:
> Original text:
> 123456789
> caret positioned after the '5'
> Pressed '?'(Shift+'):
> 12345?789
> Pressed ':
> 123456'789

Umm, this sounds strange. Isn't Shift+' some sort of a prefix/modifier key, which should normally be followed by certain characters to produce an accented character?
Comment 5 alied 2009-12-02 07:10:09 UTC
I don't think so. In this keyboard it's not a dead key. Anyway I don't get used to all these pletora of kb layouts and languages; and I can't find a decent English keyboard in this country. This kb has: ' which is not a dead key, ` (dead key, but not used in Spanish),´ (the accent used in Spanish), ç (not used in Spanish since 1492 or so) and many other with the Alt Gr (the right Alt).
Anyway, It's not NetBeans issue, so blame it on Sun, Microsoft or Olivetti.
Comment 6 alied 2009-12-02 10:31:20 UTC
It's not NB related.