PF Keys for Host On-Demand on OS X - mainframe

I'm running IBM Host On-Demand on my Mac. I haven't found a way to enter PF Keys other than through clicking on the virtual keyboard in the application. Other 3270 emulators such as Brown University tn3270 allow for command+number key for PF key function. Is there a way to something similar on Host On-Demand? It is really slow to have to to use a mouse for function keys.

Sorry to ask a stupid question, but --- have you tried hitting Fn-Fnn (use the Fn key in the lower left)? That's what I've had to do to use PF keys on HOD on my Macbook.
You can also set that behavior as default in the MacOS settings: under Keyboard, there's a checkbox that says "Press Fn key to..."

On my MacBookPro I checked the box in the keyboard System Preferences panel that says: "Use F1, F2, etc. keys as standard function keys" and I can use function keys in HOD.

Related

Tkinter vs Linux (ubuntu/Mint) <KP_Enter> not enabled by default

On Windows the events of the 'Return' key by default are already linked to the <KP_Enter> key. For example selecting a combobox item, or closing a mesagebox
Here I use Linux Mint x64 Cinnamon 20.2, based on Ubuntu. And the <KP_Enter> key is not linked to the events of the 'Return' key. Is this a bug? Or I need to do some configuration.
example if I try to select an item from the combobox with Enter, it works. But if I press <KP_Enter> (numeric enter) nothing happens
If this is a bug, where can I report it?
Key Pad Enter (KP_Enter) does not work on Ubuntu. Let me know if you find an alternative.
This is the archived list of predefined events and it is listed. Again, if there is an alternative let us know.
https://web.archive.org/web/20190512164300id_/http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/event-types.html
from my knowledge of free pascal programming
in windows : Enter(or return key) is mapped to one key VK_RETURN
in Linux : Enter is mapped to 2 keys
for keypad(numeric) to XK_KP_Enter
for left return XK_RETURN

Some Gmail Keyboard Shortcuts are not working properly with non-US keyboard

I am using a non-US keyboard (Brazilian ABNT2), and some keyboard shortcuts are not working specifically in Gmail running on Windows.
But the same keyboard shortcuts work properly in Gmail running on MacOS.
And also the same keyboard shortcuts work properly in Google Calendar, both in Windows and MacOS.
It seems to be only a Gmail+Windows issue.
I can't use shortcuts with "/" and "" on my Brazilian ABNT2 keyboard, an I believe it's because these keys have a different code/mapping than the same keys in an International-US keyboard:
International-US:
[/ ?] = Key 0x0035 (00_35)
[\ |] = Key 0x002B (00_2B)
ABNT2:
[\ |] = Key 0x0056 (00_56)
[/ ?] = Key: 0x0073 (00_73)
For some reason, these keys produce the correct effect when writing an email. No issues in writing.
But the problem happens when they are used as keyboard shortcuts.
Being more specific with examples, on an ABNT2 keyboard on Gmail+Windows 10:
pressing "?" key does nothing (and should open the Gmail help);
pressing "/" key does nothing (and should move the focus to the search box);
pressing "\" sequence of keys does nothing (and as per my personally configured keyboard shortcuts, should archive the selected email).
Complement 1: These issues are not affecting gmail in my MacOS (everything works properly there). This is happening only in my Windows 10.
Complement 2: this issue is not affecting Google Calendar on Windows 10... Pressing "/" correctly moves the focus to the search box, both in MacOS and Windows 10. So it's clearly some problem in Gmail, not in the hardware.
Any ideas on how I could make these exact keyboard shortcuts to work in Gmail on Windows 10?
Is this a bug, and if yes, is there anyone from Google here that can help to address this issue to be corrected?
Thanks in advance for your reply!
By your description it seems or an hardware issue or some settings in the Gmail account.
Have you checked if the setting for the shortcuts is actually on?
On a computer, go to Gmail.
In the top right, click Settings and then ‘See all settings.’
Click Settings.
Scroll down to the "Keyboard shortcuts" section.
Select Keyboard shortcuts on.
At the bottom of the page, click Save Changes.
Keyboard shortcuts for Gmail: https://support.google.com/mail/answer/6594
If is not this then I suggest you to do some testing with your hardware.
I tell you this because by experience this doesn't seems like a bug at all for the simple reason that in a Mac works but in a windows it doesn't. Also it is very unlikely that there may be some discrepancy between the gmail web UI and a OS, but rather between the gmail UI and the browser firstly.
Actually by putting in order what you should check first:
Hardware, check by changing the keyboard language in the windows system ---> Switch between languages using the Language bar: https://support.microsoft.com/en-us/office/switch-between-languages-using-the-language-bar-1c2242c0-fe15-4bc3-99bc-535de6f4f258
.2 If doesn't help try on a different Windows computer and with a different Keyboard.
.3 If still not working then use a different Browser (is the browser that is interacting with the webpage, in this case gmail.google.com and not the device OS directly with Gmail).
If then you see then is not solving you may report this by going in the top right corner in gmail.google.com, press the question mark (?) logo and leave a feedback as it would be the best way to directly comunicate with a Googler.

Ins key on a mac keyboard in Linux

I am on a Linux (fluxbox/Mint) with urxvt using an external Mac keyboard. I can't find an ins key. In urxvt you can select a part of text, it automatically copies, and with other types of keyboards I could use Shift+Insert and it pastes the text. How can I paste the text with a mac keyboard running in a Linux? Needless to say, that I tried the standard variations of Ctrl+C and Ctrl+V, Ctrl+0, Shift+0, in combination with fn key.
Try Fn+Shift+return.
This works as middle-click paste under both Gnome (Wayland) and i3wm (Xorg) in Fedora 28 with my 2016 MacBook Pro 13,1 built-in keyboard (using an out-of-tree SPI driver). Hopefully it's the same situation for external Mac keyboards under other specific environments.
Maybe you can try fn + return to simulate the Insert key.
Another way, install AutoKey :
apt-get install autokey-gtk
and set a phrase to:
Phrase Text: <ctrl>+C (actually type out the <ctrl>+ here)
Paste Using: Keyboard
Abbreviation: None
Hotkey: <super>+v
Window Filter: None
If you want to use your Apple keyboard like a regular US-layout keyboard, with Alt on the left side of Meta, you can use the AUR package un-apple-keyboard. Currently it only works for the aluminium USB model.
The package does the following things:
Adds a /etc/modprobe.d/hid_apple.conf file which enables the F num keys by default, as in #Function keys do not work.
Uses keyfuzz to remap F13-15 to PrintScreen/SysRq, Scroll Lock, and Pause, respectively.
Swaps the ordering of the Alt and Meta (Command) keys to match all other keyboards, again using /etc/modprobe.d/hid_apple.conf, as in #Swap the Alt key and Command key (Meta/Super).
Applies these changes automatically when you plug in your keyboard, with a udev rule.
See more information from Archlinux wiki Apple Keyboard.
Try Fn+Opt+Return. Works for me.

How to emulate integrated numeric keypad cursor keys in linux

On many older laptops and some compact keyboards there is an integrated numeric keypad in the main keyboard area. This alternate keypad is activated with a special 'Fn' key next to the left Ctrl key.
As a programmer I learned to use the cursor movement keys (arrows, PgUp, PgDn etc.) and found it greatly improved my programming speed. And the benefits were not bound to just a single application as is the case with specialised shortcut keys.
On conventional PC keyboards, the 'Windows Key' can be used to emulate the 'Fn' key and a corresponding integrated numeric keypad. When I used to use MS Windows I found Autohotkey was able to map the keys using a simple script.
Recently I learned about xkb and how it can be used to map keystrokes at a very low level.
What is the xkb keyboard mapping profile that will emulate an integrated numeric keypad using the windows key as the fn key?
Hint(?): I suspect the file will look a lot like the '/usr/share/X11/xkb/symbols/keypad' file on a Debian-derivative linux distro. This 'keypad' file is included at the top of the '/usr/share/X11/xkb/symbols/pc' file.
The corresponding autohotkey script for reference (# == WinKey):
#8::Up
#k::Down
#u::Left
#o::Right
#7::Home
#j::End
#9::PgUp
#l::PgDn
#m::Insert
#.::Delete
;(Scroll with the left-over keys)
#i::WheelUp
#,::WheelDown
Note that all these keys need to work with any combination of Ctrl, Alt, Shift as well as the Windows Key.
Steps to install numeric keypad-like cursor keys on the main keyboard in Linux / XKB...
xkbcomp $DISPLAY original.xkb (just in case ;)
xkbcomp $DISPLAY custom.xkb
Edit custom.xkb
Add the following at the end of section: xkb_types "..." {
type "WinKeyAsFnKey" {
modifiers = Shift+Super;
map[Shift] = level2;
map[Super] = level3;
map[Super+Shift] = level3;
level_name[Level1] = "Base";
level_name[Level2] = "Caps";
level_name[Level3] = "Fn";
};
Add the following at the end of section xkb_symbols "..." {
key <AE07> {type="WinKeyAsFnKey",symbols[Group1]=[7,ampersand,NoSymbol],actions=[NoAction(),NoAction(),RedirectKey(key=<HOME>,clearmods=Super)]};
key <AE08> {type="WinKeyAsFnKey",symbols[Group1]=[8,asterisk,NoSymbol],actions=[NoAction(),NoAction(),RedirectKey(key=<UP>,clearmods=Super)]};
key <AE09> {type="WinKeyAsFnKey",symbols[Group1]=[9,parenleft,NoSymbol],actions=[NoAction(),NoAction(),RedirectKey(key=<PGUP>,clearmods=Super)]};
key <AD07> {type="WinKeyAsFnKey",symbols[Group1]=[u,U,NoSymbol],actions=[NoAction(),NoAction(),RedirectKey(key=<LEFT>,clearmods=Super)]};
key <AD09> {type="WinKeyAsFnKey",symbols[Group1]=[o,O,NoSymbol],actions=[NoAction(),NoAction(),RedirectKey(key=<RGHT>,clearmods=Super)]};
key <AC07> {type="WinKeyAsFnKey",symbols[Group1]=[j,J,NoSymbol],actions=[NoAction(),NoAction(),RedirectKey(key=<END>,clearmods=Super)]};
key <AC08> {type="WinKeyAsFnKey",symbols[Group1]=[k,K,NoSymbol],actions=[NoAction(),NoAction(),RedirectKey(key=<DOWN>,clearmods=Super)]};
key <AC09> {type="WinKeyAsFnKey",symbols[Group1]=[l,L,NoSymbol],actions=[NoAction(),NoAction(),RedirectKey(key=<PGDN>,clearmods=Super)]};
key <AB07> {type="WinKeyAsFnKey",symbols[Group1]=[m,M,NoSymbol],actions=[NoAction(),NoAction(),RedirectKey(key=<INS>,clearmods=Super)]};
key <AB09> {type="WinKeyAsFnKey",symbols[Group1]=[period,greater,NoSymbol],actions=[NoAction(),NoAction(),RedirectKey(key=<DELE>,clearmods=Super)]};
Save custom.xkb
xkbcomp custom.xkb $DISPLAY
I'm still working on the mouse scroll with 'i' and ','.
EDIT:
The above solution does not play nice with Google Chrome and Chrome-based apps (like Slack).
Alternative approach is to use a programmable keyboard. I use an after-market PCB for a CoolerMaster Masterkeys S keyboard. The Easy AVR layout is available online (although currently the left win-key now doesn't work by itself...I use the right one).

android studio navigate back shortcut not working in windows

Has anyone (who is using windows) had this problem that navigate back shortcut in Android Studio is not working? The shortcut key Alt+Ctrl+Left/Right Arrow is not working, which, I guess, is because of conflicting with some graphic card's shortcut. Is there a way to get rid of that?
I tried to disable the key combination in the graphic card setting, but still not working. It's intel graphic card, btw.
Another fact is that after I remove the combination in Android studio keymap, the adding shortcut setting does not recognized the key combination.
Navigation:
Control Panel[Select large icon]> Find Intel graphics option > Open
setting screen
Just try to customize new hotkeys in Intel Graphics panel,
does not metter - disable or enable this hot keys
Just disable the hot keys from the graphics option -> Hot Keys -> Disable in the tray.
Worked for me.
Edit: Added screenshot
Actually I had to reasign this hot keys for something other, then disable
For intel graphics, right-click in desktop and choose Graphics Properties (or go Control panel and Intel graphic app) then choose to Option and support tab then hotkey manager and uncheck Hot key in top, or change keys in below.
Very similar for me:
Intel Graphics Command Center -> System -> HotKeys -> Enable System HotKeys: Off
Please note, that if it is already turned off, turn it on and off again. I'm not kidding. I had to do the same thing.
If you are using windows 10, just disable the hotkeys of Graphics
Go to Desktop.
Right-click anywhere on the desktop screen.
Select "Graphics Options" -> "Hot Keys" -> "Disable"
Solution For Ubuntu
Not all navigation keyboard shortcuts are listed in Settings GUI therefore you won't be able to unbind CTRL+ALT+←/→ from there.
Verify that CTRL+ALT+←/→ are effectively bound to "Switch to workspace left/right":
gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-left
gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-right
Unbind the shortcuts:
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]"
The easiest solution for any issue related to keys is to Restore Default Copy.
To restore go to File -> Settings -> Keymap -> Select Windows/Default copy (If you are using default Keymap or select your current keymap) from drop-down then click on the small settings button and select Restore Default Copy in the option.

Resources