Page 1 of 1
Problem Defining 'Program Function Key'
Posted: Sun Jun 30, 2024 1:01 am
by PGilbert
While using Dyalog APL/W-64 Version 19.0.48959 on Windows 10 Pro if I try to define a 'Program Function Key' like this:
(')VARS',⊂'ER')⎕PFKEY 2
it does not work when I press on F2 (Mail program is opening up). If I press on F1 while the caret is on ⎕PFKEY for example, the Dyalog help will not open but instead it is the Google browser.
What is it that I am doing wrong ?
Thanks in advance.
Re: Problem Defining 'Program Function Key'
Posted: Sun Jun 30, 2024 7:19 am
by paulmansour
I can't see anything wrong.
Works fine for me in both 18 and 19 on windows 10.
Re: Problem Defining 'Program Function Key'
Posted: Sun Jun 30, 2024 8:21 am
by Adam|Dyalog
Does your keyboard have an Fn key? If so, then it might also have Fn-lock functionalty, often accesed via Fn+Esc or a dedicated key. It is usually labelled "FnLock" or "ⒻLock" or similar. When active, it swaps meaning so that plain F-keys are shortcut keys to applications, multimedia, and other functionality, while you need to hold Fn with a function key to access the raw function key that Dyalog will pick up.
This guide might help you find out how to swap the functionality. When unlocked, you will find that your F-keys work as normal, while you need to hold Fn with F-keys to access applications, multimedia, etc.
Re: Problem Defining 'Program Function Key'
Posted: Sun Jun 30, 2024 3:53 pm
by PGilbert
Thanks Paul and Adam for your answer. I found the culprit. I have a Logitech K800 keyboard and with the Logi+ software to configure the keyboard there is an option: 'Use F1, F2, etc. keys as standard function keys'. This option was disable, once I enable it the ⎕PFKEY started working. There was no physical button to enable/disable this option.
Thanks for your time.