Page 2 of 2

Re: Use F-keys without Fn [DONE]

Posted: Thu Jul 21, 2016 11:22 am
by mike
sasha wrote:
migun wrote:Can you please send me a console output of this build when you hit your Fxx keys?
Maybe it's possible to intercept F4 key on that keyboard.
Mike, could you please explain this step again? I downloaded and started this build, but it seemed not to write anything to Console.app. I'll be happy to try again!
Oh, I've meant to simply run NC from some terminal application - literally to run a "Nimble Commander.app/Contents/MacOS/Nimble Commander" executable. It will print out keys info via stdout/stderr, i.e. simply to the regular text output.
Console.app is another beast...

Re: Use F-keys without Fn [DONE]

Posted: Thu Jul 21, 2016 1:28 pm
by sasha
Ok, here's the output using my Bluetooth A1255 keyboard after pressing F1 through F12 (no fn key):

Code: Select all

kCGEventKeyDown/kCGEventKeyUp CGKeyCode: 145
^[OPkCGEventKeyDown/kCGEventKeyUp CGKeyCode: 145
kCGEventKeyDown/kCGEventKeyUp CGKeyCode: 144
^[OQkCGEventKeyDown/kCGEventKeyUp CGKeyCode: 144
kCGEventKeyDown/kCGEventKeyUp CGKeyCode: 160
^[ORkCGEventKeyDown/kCGEventKeyUp CGKeyCode: 160
kCGEventKeyDown/kCGEventKeyUp CGKeyCode: 130
kCGEventKeyDown/kCGEventKeyUp CGKeyCode: 130
kCGEventKeyDown/kCGEventKeyUp CGKeyCode: 96
^[[15~kCGEventKeyDown/kCGEventKeyUp CGKeyCode: 96
kCGEventKeyDown/kCGEventKeyUp CGKeyCode: 97
^[[17~kCGEventKeyDown/kCGEventKeyUp CGKeyCode: 97
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 20
^[[18~NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 20
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 16
^[[19~NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 16
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 19
^[[20~NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 19
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 7
^[[21~NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 7
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 1
^[[23~NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 1
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 0
^[[24~NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 0
And here's the one using the MBP Mid 2014's internal keyboard:

Code: Select all

NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 3
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 3
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 2
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 2
kCGEventKeyDown/kCGEventKeyUp CGKeyCode: 160
^[ORkCGEventKeyDown/kCGEventKeyUp CGKeyCode: 160
kCGEventKeyDown/kCGEventKeyUp CGKeyCode: 131
^[OSkCGEventKeyDown/kCGEventKeyUp CGKeyCode: 131
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 22
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 22
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 21
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 21
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 20
^[[18~NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 20
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 16
^[[19~NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 16
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 19
^[[20~NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 19
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 7
^[[21~NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 7
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 1
^[[23~NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 1
NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 0
^[[24~NSSystemDefined NX_SUBTYPE_AUX_CONTROL_BUTTONS keycode: 0

Re: Use F-keys without Fn [DONE]

Posted: Thu Jul 21, 2016 3:36 pm
by mike
Sasha, thank you, I'll now figure what to do with this issue.

A short question regarding this table: am I right that F4 button wasn't the only problematic one?
You test it very simply - just head to Preferences->Hotkeys and try to assign Fxx buttons to some action.

Re: Use F-keys without Fn [DONE]

Posted: Wed Jul 27, 2016 7:00 am
by mike
I've made some additions in Fn buttons handling recently - please check out the behavior of release version 1.1.3.

Re: Use F-keys without Fn [DONE]

Posted: Wed Jul 27, 2016 8:23 pm
by sasha
In build 1695, all of my F-keys are working properly. Thanks for taking care of that!

Re: Use F-keys without Fn [DONE]

Posted: Fri Aug 11, 2017 3:03 pm
by swoop
This will be difficult (because I'm a purist as well). However, would it be possible to have this functionality for "F1 - F9" keys only.

I'm coming from TC world and I didn't find any command (so far) I'd like triggering by F10-F12 on my MacBook. Having only "F1 - F9" directly interpreted by NC would enable for quick mute / volume when some delayed web advert suddenly decides to blast through speakers. Feasible?

Re: Use F-keys without Fn [DONE]

Posted: Thu Sep 07, 2017 9:27 am
by mike
Well, it's a matter of minutes to write the customization support.
The question is - how to actually tune it and how many folks will actually do it?
I can add a config entry to specify a list of Fxx buttons to be processed by NC, but I doubt many users can edit it directly.