Problem Defining 'Program Function Key'

General APL language issues
Post Reply
User avatar
PGilbert
Posts: 440
Joined: Sun Dec 13, 2009 8:46 pm
Location: Montréal, Québec, Canada

Problem Defining 'Program Function Key'

Post 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.
paulmansour
Posts: 431
Joined: Fri Oct 03, 2008 4:14 pm

Re: Problem Defining 'Program Function Key'

Post by paulmansour »

I can't see anything wrong.
Works fine for me in both 18 and 19 on windows 10.
User avatar
Adam|Dyalog
Posts: 143
Joined: Thu Jun 25, 2015 1:13 pm

Re: Problem Defining 'Program Function Key'

Post 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.
User avatar
PGilbert
Posts: 440
Joined: Sun Dec 13, 2009 8:46 pm
Location: Montréal, Québec, Canada

Re: Problem Defining 'Program Function Key'

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