dstarikov / ctrl2esc Goto Github PK
View Code? Open in Web Editor NEWMap Control to Escape if pressed by itself in ChromeOS
License: MIT License
Map Control to Escape if pressed by itself in ChromeOS
License: MIT License
I believe it is possible to manage what keys get sent to a Linux app using Sommelier, so perhaps it would be possible to use those rules to make ctrl2esc get evaluated first rather than passing in the keystroke directly? I'm not sure if caps2esc or other remapping tools if they are not X specific would work as well, but maybe a rule in /etc/default/keyboard would be better if Crostini actually has that file and uses it?
Whether you interact with Sommelier or not this depends if you are using the Terminal for Crostini which is a native ChromeOS app, or if you are using an alternate terminal like Kitty or Gnome Terminal etc or working with another GUI app like VS Code or Spotify for Linux etc.
https://www.reddit.com/r/Crostini/wiki/enable-chrome-shortcuts-in-linux-apps
Luckily I discovered/remembered (from real vim
) that using Ctrl + [ can send the Esc sequence directly, which is crucial since I left my physical Esc key mapped to the Search functionality since I still frequently use the Ctrl key at the bottom left of the keyboard when switching tabs using Ctrl + PgUp/PgDn.
I've also noticed some really weird interactions with ctrl2esc
enabled like sometimes I'll be typing into an input field and the keyboard stops printing every character, but if I hit the Search/Ctrl mapped key to send Esc suddenly it will output some of the missing characters but in a jumbled order from what I had typed. I'll see if I can find a specific sequence that triggers this behavior and if it happens in other places than just this text field.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.