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 252314 - Escape to cancel hint shouldn't be counted as a beginning of a keymap sequence
Summary: Escape to cancel hint shouldn't be counted as a beginning of a keymap sequence
Status: RESOLVED DUPLICATE of bug 262194
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks: 252488
  Show dependency tree
 
Reported: 2015-05-09 07:56 UTC by cezariusz
Modified: 2016-06-10 09:42 UTC (History)
0 users

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 cezariusz 2015-05-09 07:56:39 UTC
Product Version: NetBeans IDE Dev (Build 201505020001)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 7 version 6.1 running on amd64; UTF-8; pl_PL (nb)

Write some code to have a hint in the editor. Call the hint with Alt+Enter (or Ctrl+1 if using Eclipse keymap like me). Change your mind and cancel the hint list with Escape - the list will disappear, but the Escape will begin an escape sequence (you can see an ESCAPE caption in the lower left corner of the IDE). Now press a key (for example an arrow key, "a" key or Escape again) - you will hear a warning sound and the key will not do any action.

Note it doesn't happen with Code completion list.

Testcase:

public class EscapeTest {

    public void demo() {
        String str = |
    }

}

1. While at the "|" position press Alt+Enter (you will see a "Split..." hint), then Escape (notice the ESCAPE caption), then "a" - you will hear a warning sound, and the "a" letter won't be added to the source code.

2. While at the "|" position press Ctrl+Space (you will see a CC list with many entries, starting with "toString"), then Escape (the list will disappear), then "a", and the "a" letter will be inserted as expected.
Comment 1 Milutin Kristofic 2015-05-15 09:34:20 UTC
http://hg.netbeans.org/jet-main/rev/e7e9c9883004
Comment 2 Quality Engineering 2015-05-16 08:29:24 UTC
Integrated into 'main-silver', will be available in build *201505160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e7e9c9883004
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #252314 - Escape to cancel hint shouldn't be counted as a beginning of a keymap sequence
Comment 3 Milutin Kristofic 2015-05-25 13:38:04 UTC
Revert change because of #252488. I will figure this later. http://hg.netbeans.org/jet-main/rev/28cc260dbc83
Comment 4 Quality Engineering 2015-05-27 05:54:03 UTC
Integrated into 'main-silver', will be available in build *201505270357* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/28cc260dbc83
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #252314 - Escape to cancel hint shouldn't be counted as a beginning of a keymap sequence
Comment 5 Dusan Balek 2016-06-10 09:42:36 UTC
Already fixed.

*** This bug has been marked as a duplicate of bug 262194 ***