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 244023 - Can't search assign option key shortcut in Keymap Preferences section
Summary: Can't search assign option key shortcut in Keymap Preferences section
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: PATCH_AVAILABLE
: 235584 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-23 10:43 UTC by ionuion
Modified: 2017-04-25 20:33 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
fix Alt binding problems on Mac. (4.51 KB, patch)
2015-12-23 14:51 UTC, vmi
Details | Diff
Add leaked patch. (1.26 KB, patch)
2015-12-23 15:43 UTC, vmi
Details | Diff
fix alt key problems on MacOSX. (5.78 KB, patch)
2015-12-27 23:01 UTC, vmi
Details | Diff
fix alt key problems on MacOSX. (fix a bug) (5.77 KB, patch)
2016-01-12 11:37 UTC, vmi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ionuion 2014-04-23 10:43:41 UTC
Environment:
Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Mac OS X version 10.9.2 running on x86_64; UTF-8; en_US (nb)

Mac OS X specific

Steps to reproduce:
1. Open the Preferences window, go to Keymap section
2. Move focus to the Search in Shortcuts input field.
3. Hit Option-G

Expected:
⌥+G printed
Actual:
G not printed (only ⌥+)

4. Move focus to Search input field
5. Enter 'group'
6. Duble click the Project Groups/Shortcut cell
7. Hit Option-G
Expected:
⌥+G entered

Actual:
G not entered (only ⌥+ entered)
Comment 1 Petr Jiricka 2014-05-09 13:35:47 UTC
Moving to the right category.
Comment 2 Theofanis Oikonomou 2014-05-16 08:16:00 UTC
re-assigning to correct component. Please evaluate. Thank you
Comment 3 David Strupl 2014-05-23 07:08:46 UTC
Confirming the behaviour. Marking as P3 since almost all option shortcuts are visible when performing the search so the lost of functionality is not that dramatic.
Comment 4 lobsterkatie 2014-07-07 00:03:10 UTC
"Marking as P3 since almost all option shortcuts are visible when performing the search so the lost of functionality is not that dramatic."

Not true! I can't assign any key command involving the option key -- none of them appear in the drop-down list which supposedly lists all my options. There is a *definite* loss of functionality!

Please fix this -- I'd really like to be able to easily toggle commenting (I have command+slash assigned to launchpad, and yes, I know, real geeks probably don't use launchpad, but who cares, this should work...)

Thanks!
Comment 5 Svata Dedic 2015-05-22 12:20:13 UTC
*** Bug 235584 has been marked as a duplicate of this bug. ***
Comment 6 vmi 2015-12-23 14:51:19 UTC
Created attachment 157902 [details]
fix Alt binding problems on Mac.

Hi,

I fixed Alt binding problems on Mac.

* can't search assign option key shortcut in Keymap Preferences section. (this bug)
* special character inserted after executing the command assigned to Alt keys.

I attached this patch.
Please check it.
Comment 7 vmi 2015-12-23 15:43:45 UTC
Created attachment 157906 [details]
Add leaked patch.

Sorry, I leaked one file.
added it.
Comment 8 vmi 2015-12-27 23:01:02 UTC
Created attachment 157935 [details]
fix alt key problems on MacOSX.

refine the patch.
Comment 9 vmi 2016-01-12 11:37:18 UTC
Created attachment 158100 [details]
fix alt key problems on MacOSX. (fix a bug)

Sorry, I enbugged when refining the code.

diff -U0 fix-alt-key-problems.diff fix-alt-key-problems2.diff 
--- fix-alt-key-problems.diff	2015-12-28 07:46:52.000000000 +0900
+++ fix-alt-key-problems2.diff	2016-01-12 20:34:24.000000000 +0900
@@ -128 +128 @@
-+        return keyCode != KeyEvent.VK_UNDEFINED && (!Utilities.isMac() || keyCode >= MIN_IGNORE_EXTENDED_KEY_CODE);
++        return keyCode != KeyEvent.VK_UNDEFINED && (!Utilities.isMac() || keyCode < MIN_IGNORE_EXTENDED_KEY_CODE);
Comment 10 Tomas Hurka 2016-08-16 08:47:38 UTC
I am not able to reproduce it with:

Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14
System: Mac OS X version 10.11.6 running on x86_64; UTF-8; en_US (nb)
Comment 11 matthew49 2017-04-25 20:33:27 UTC
I can reproduce this and it's frustrating that I'm unable to make shortcuts with option:

Product Version: NetBeans IDE 8.2 (Build 201609300101)
Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 1
Java: 1.8.0_131; Java HotSpot(TM) 64-Bit Server VM 25.131-b11
Runtime: Java(TM) SE Runtime Environment 1.8.0_131-b11
System: Mac OS X version 10.12.4 running on x86_64; UTF-8; en_US (nb)

I have never installed a Netbeans patch before. Should I try one of the ones attached, and if so could someone link me to any instructions for how to do so?