Comments (2)
This is a tricky one. I've come up with one possible solution (below).
The major issue is getting shift-command to map to command while command is already mapping to control. After some experimentation, the only way I've found so far to get consistent behavior is to map command
to control
, shift+command
to command
, shift + control
to command
.
Two mappings are required to handle both the case where shift
is hit before the physical command
key and the case where command
is hit before shift
.
I imagine there is a simpler combination of rules I haven't hit on yet, but this should give you your desired behavior.
{
"title": "Change control and command in Terminal.App",
"rules": [
{
"description": "Change command to control and shift + command to command in Terminal.App",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_shift",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "left_command"
}
],
"conditions": [
{
"bundle_identifiers": [
"^com\\.apple\\.Terminal$"
],
"type": "frontmost_application_if"
}
]
}, {
"type": "basic",
"from": {
"key_code": "left_command",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "left_command"
}
],
"conditions": [
{
"bundle_identifiers": [
"^com\\.apple\\.Terminal$"
],
"type": "frontmost_application_if"
}
]
}, {
"type": "basic",
"from": {
"key_code": "left_command"
},
"to": [
{
"key_code": "left_control"
}
],
"conditions": [
{
"bundle_identifiers": [
"^com\\.apple\\.Terminal$"
],
"type": "frontmost_application_if"
}
]
}
]
}
]
}
from ke-complex_modifications.
Closing this issue as resolved. If you need anything further, please feel free to reopen it!
from ke-complex_modifications.
Related Issues (20)
- swap '$' with '*' HOT 1
- How to disable Cmd+Shift+X in Firefox?
- Unable to get α working HOT 1
- Can we get OS support for macro keys on Razer Blackwidow v4
- 'Use Delete as Move to Trash' not working. HOT 1
- Can't get play button of Logitech R400 mapped for Keynote
- "Others" - "apple_vendor_keyboard_key_code expose_desktop" should show desktop?
- macos right-click, eg. by double right command
- ctrl+k / ctrl+y outlook 365
- any way to modify ctrl + left click to work like cmd + left click?
- MacOS/Linux Support for Cloud Nine ErgoFS C989 Keyboard
- Most of my Complex Modifications Stopped working HOT 3
- Adding Local JSON File for Complex Rules HOT 4
- HHKB fn key is not work
- numeric keypad / Map the “Comma” key to “Period”
- Exclude Royal TSX in Windows shortcuts on macOS
- Toggling sticky modifiers not working
- Q: Temporary stickyness
- Map home/end keys to cmd+left/right
- Don't relay current keyboard input language to other apps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ke-complex_modifications.