Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<D-z> and <D-q> input do not work as expected #226

Open
majick opened this issue Feb 17, 2022 · 2 comments
Open

<D-z> and <D-q> input do not work as expected #226

majick opened this issue Feb 17, 2022 · 2 comments

Comments

@majick
Copy link

majick commented Feb 17, 2022

Summary
When attempting to input Cmd-Z -- for example due to having set a mapping or using a ^K digraph -- requires the Cmd key to be held down much longer. Cmd-Q or <D-q> cannot be input at all. :h ios-external-keyboard states the following which does not mention these chords are reserved.

b. chords <D-s>, <D-h> and <D-.> are reserved by iOS system.

It's a separate small documentation bug that actually <D-s> isn't reserved and works exactly as the user would expect.

Expected Result
<D-z> and <D-q> should be usable like all other key chords.

Actual Result
When attempting to enter <D-z> normally at a normal typing speed no input is recognized at all. In order to succeed I must hold down the Cmd key until the "Show Keyboard Menu" popup is shown (part of the OS shortcuts reminder feature) and then press the Z key. When attempting to enter <D-q> no input is recognized whatsoever.

<S-z> <C-z> and z all work normally at a correct typing speed. <S-q> <C-q> and q also work normally.

Additional information
Tested with no mappings of my own that should interfere with these chords.

iVim version: 2.47(2)
iVim install source: App Store

iVim hardware keyboard settings are
Map [caps lock] to: none
Map [ctrl] to [esc] on release: false
Enable [alt] mapping: true
Key Repeating: true

iVim launch options are
Arguments:
Always: false

General Keyboard > Hardware Keyboard > Modifier Keys settings are
Caps Lock Key: No Action
Control Key: Control
Option Key: Option
Command Key: Command
Globe Key: Globe

System information
iPad Air 4th Generation
iPadOS Version 15.3.1
Apple Magic Keyboard Hardware Version 0009
Apple Magic Keyboard Firmware Version 0450.0523.0200

@majick
Copy link
Author

majick commented Oct 22, 2022

This is present even with subsequent OS updates. I'm pretty sure it's an iVim input bug at this point rather than something the OS is doing.

@terrychou
Copy link
Owner

According to my latest test (iPadOS 16.0), 3 <D- keypresses <D-h>, <D-q> or <D-z> are not working.

The case is not that iVim ignores these on purpose. Actually, iVim requests them as others, but the system never sends their pressing events to iVim (reserved).

However, this may change version by version. One example is the <D-.> as discussed in #256. Another is the <D-s>, which is working now but not when that piece of documentation was written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants