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 217497 - Keyboard shortcuts for Open Recent File misbehaving
Summary: Keyboard shortcuts for Open Recent File misbehaving
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on: 217575
Blocks: 211167
  Show dependency tree
 
Reported: 2012-08-28 06:43 UTC by mienamoo
Modified: 2012-09-27 09:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Keymaps folder (1.40 KB, application/x-zip-compressed)
2012-08-28 12:05 UTC, mienamoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mienamoo 2012-08-28 06:43:32 UTC
NetBeans build 201208200933
JDK 7u5 64-bit

The new Open Recent File action works like a charm. But I wanted to remap it to have Ctrl+Shift+T for a shortcut instead of Ctrl+Alt+T. So I went into the Keymap options, and set the new value. A warning was displayed that the mapping is already in use, and I chose to remove the old key mapping. However, the newly set shortcut was not working.

So I tried to reset the shortcut to default, but that did not in fact do anything.

Then I manually set Open Recent File as well as Go To Test (Ctrl+Shift+T by default) back to what they were. This worked as expected.

Lastly I cleared Go To Test first and then set Open Recent File to my desired shortcut. This worked.

So something weird is going on, with the process for changing the key bindings sometimes misbehaving.
Comment 1 Svata Dedic 2012-08-28 07:21:51 UTC
Did you use a pristine userdir, or have you imported your old settings when installing NB 7.3 dev ? Please could you zip&attach the Keymap part of your userdir/config ? Thanks.
Comment 2 mienamoo 2012-08-28 12:04:45 UTC
The userdir has been around since early 7.2 dev days, but I never imported anything. I deleted the Keymap folder to see whether I could reproduce the issue, and it still happens.

Even weirder, when I removed both and added it again to get it to work as described above and then restarted, the key binding did again not work. Curiouser and curiouser. :)
Comment 3 mienamoo 2012-08-28 12:05:23 UTC
Created attachment 123651 [details]
Keymaps folder
Comment 4 Svata Dedic 2012-08-28 13:33:32 UTC
Observation: 
when when Open Recent File is redefined to CS-T, and the original Go To Test action cleared (after prompt), the CS-T shortcut does not work. Does nothing observable to be correct. After IDE restart, CS-T is working. NB Keymap dir after the above operation is in the state as exhibited in the attachment
Comment 5 Svata Dedic 2012-08-28 14:42:04 UTC
Changeset: 936a24ecaf77
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2012-08-28 16:42
Message:   Issue #217497 - Keyboard shortcuts for Open Recent File misbehaving: fixed
The .removed mask-out markers must be processed textually, not as KeyStrokes, to avoid removing user-defined or profile-defined shortcuts. Testcase added.
Comment 6 mienamoo 2012-08-28 14:49:56 UTC
Thanks for a really fast fix! :D
Comment 7 Quality Engineering 2012-08-30 02:13:50 UTC
Integrated into 'main-golden', will be available in build *201208300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/936a24ecaf77
User: Svata Dedic <sdedic@netbeans.org>
Log: Issue #217497 - Keyboard shortcuts for Open Recent File misbehaving: fixed
The .removed mask-out markers must be processed textually, not as KeyStrokes, to avoid removing user-defined or profile-defined shortcuts. Testcase added.
Comment 8 mienamoo 2012-08-30 07:31:24 UTC
Verified with build 201208300001.