Use F-keys without Fn [DONE]

Any wishes
User avatar
mike
Posts: 574
Joined: Thu Jul 16, 2015 5:35 am
Location: Barnaul, Russia

Re: Use F-keys without Fn [DONE]

Post by mike » Thu Jul 21, 2016 11:22 am

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...

sasha
Posts: 129
Joined: Wed Feb 17, 2016 4:59 pm

Re: Use F-keys without Fn [DONE]

Post by sasha » Thu Jul 21, 2016 1:28 pm

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

User avatar
mike
Posts: 574
Joined: Thu Jul 16, 2015 5:35 am
Location: Barnaul, Russia

Re: Use F-keys without Fn [DONE]

Post by mike » Thu Jul 21, 2016 3:36 pm

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.

User avatar
mike
Posts: 574
Joined: Thu Jul 16, 2015 5:35 am
Location: Barnaul, Russia

Re: Use F-keys without Fn [DONE]

Post by mike » Wed Jul 27, 2016 7:00 am

I've made some additions in Fn buttons handling recently - please check out the behavior of release version 1.1.3.

sasha
Posts: 129
Joined: Wed Feb 17, 2016 4:59 pm

Re: Use F-keys without Fn [DONE]

Post by sasha » Wed Jul 27, 2016 8:23 pm

In build 1695, all of my F-keys are working properly. Thanks for taking care of that!

User avatar
swoop
Posts: 37
Joined: Thu Mar 02, 2017 2:40 pm
Location: Brussels, Belgium

Re: Use F-keys without Fn [DONE]

Post by swoop » Fri Aug 11, 2017 3:03 pm

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?
Total Commander (Windows 95 - Windows 7) (retired for Mac)
Crax, DCommander, Commander One, Nimble Commander (macOS Sierra)
Macbook 12" 2016

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest