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

Unexpected loss of Case Changing Key Bindings With Custom Key Binding #6583

Open
nick-spies opened this issue Jan 8, 2025 · 2 comments
Open

Comments

@nick-spies
Copy link

Description of the bug

Whilst editing text, the key bindings for changing case were unexpectedly lost. A restart fixed the problem.

Steps to reproduce

Not reproducible?

Expected behavior

Cmd-K Cmd-U (etc) would change case to UPPER

Actual behavior

Cmd-K Cmd-U (etc) did nothing

Sublime Text build number

4190

Operating system & version

MacOS 15.5

(Linux) Desktop environment and/or window manager

No response

Additional information

I wonder if the loss of key bindings might have been a result of some mistaken keyboard action on my part, although I think this would seem implausible. However, if this were the case, it would, in my opinion, be a bug.

OpenGL context information

No response

@nick-spies nick-spies changed the title Unexpected loss of Case Changing Key Bindings Unexpected loss of Case Changing Key Bindings With Custom Key Binding Jan 8, 2025
@nick-spies
Copy link
Author

I have a custom key binding as follows:
[
{ "keys": ["super+k", "super+t"], "command": "title_case" }
]

Does this conflict with built-in key mapping?

@deathaxe
Copy link
Collaborator

deathaxe commented Jan 8, 2025

If OS didn't catch it, most likely cause being a plugin/package with a conditional key binding, which is enabled only in certein context.

	{ 
		"keys": ["ctrl+k", "ctrl+u"], 
		"command": "any_other_command",
		"context": [
			{
				"key": "selector",
				"operand": "source.any",
			}
		],
	},

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