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

Ctrl-[ don't escape from insert mode (like Esc) on Belgian keyboard #10454

Closed
vds2212 opened this issue May 20, 2022 · 10 comments
Closed

Ctrl-[ don't escape from insert mode (like Esc) on Belgian keyboard #10454

vds2212 opened this issue May 20, 2022 · 10 comments

Comments

@vds2212
Copy link

vds2212 commented May 20, 2022

Steps to reproduce

On a computer with a Belgian keyboard using gVim

  1. Start Vim
  2. Enter in insert mode
  3. Type: Ctrl-[

Expected behaviour

You should be back in Normal mode but you stay in insert mode.

Version of Vim

8.2.4943 on Windows 10 8.2.3995 on Ubuntu 22.04

Environment

Operating System: Windows 10 or Ubuntu 22.04

I can only reproduce the problem on gVim (on Vim the problem do not occur)

Logs and stack traces

No response

@vds2212
Copy link
Author

vds2212 commented May 20, 2022

I have compiled different tags of Vim on Windows 10.
I don't have the problem at version 8.2.4006
But I do have the problem at version 8.2.4007 and later

@chrisbra
Copy link
Member

I think this is a duplicate of #10324

@vds2212
Copy link
Author

vds2212 commented Jun 29, 2022

I cross checked and the issue is present in the new Vim 9.0. I'm afraid without the problem solved I will not be able to use gVim 9.0. What would you suggest me to push the resolution of this problem?

@brammool
Copy link
Contributor

@LemonBoy was working on a solution, but it didn't get completed yet.

@vds2212
Copy link
Author

vds2212 commented Jun 30, 2022

Thanks! Let me know if I can contribute in any ways.

@brammool
Copy link
Contributor

brammool commented Jul 4, 2022

Patch 9.0.0033 fixes this for GTK, but it is still a problem for MS-Windows

@vds2212
Copy link
Author

vds2212 commented Jul 4, 2022

Thanks for the update :-)

@tonymec
Copy link

tonymec commented Jul 4, 2022

WFM on gvim (Big, GTK3) 9.0.32 i.e. without the patch. Don't forget, however, that on a Belgian keyboard, [ is AltGr+dead-circumflex, therefore Ctrl+[ is Ctrl+AltGr+dead-circumflex.

Best regards,
Tony.

@vds2212
Copy link
Author

vds2212 commented Jul 6, 2022

Hi Tony,

I have tested version 9.0.35 and the problem is still present in gVim.

On gVim 8.2 I can escape using: Ctrl+DeadCircumflex
On gVim 9.0 I can't escape neither Ctrl+DeadCircumflex nor Ctrl+AltGr+DeadCircumflex

Remark: The problem is not present on Vim 9.0

Best regards,
Vivian

@vds2212
Copy link
Author

vds2212 commented Jul 11, 2022

Anton has created a azerty_ctrl_dead branch in his repository https://github.com/haron13-2019/vim/tree/azerty_ctrl_dead and made a Pull Request (#10687)
This seems to solve the problem on Belgian keyboards.

ant0sha pushed a commit to ant0sha/vim that referenced this issue Jul 30, 2022
New low-level keypresses testcase relying on "setkblayout"

reproduces problem which failed prior to 9.0.0087 (vim#10687, vim#10454)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants