Alt+B / Alt+Shift+B toggle layer sampling

layer.sampling takes `toggle`: layers that all have the sampling already get the
other one. The Bilinear and Bicubic menu entries, which carry the keys, pass it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pravdomil
2026-10-12 17:49:55 +02:00
co-authored by Claude Opus 5.5
parent eec84a8095
commit dfff9ba2dc
4 changed files with 36 additions and 5 deletions
+2 -2
View File
@@ -418,8 +418,8 @@ fn default_keys_for_commands_that_had_none() {
for (id, params, key) in [
("edit.pasteReversedKeyframes", json!(null), "Cmd+Shift+V"),
("edit.purge", json!({"what": "snapshot"}), "Cmd+Shift+F5"),
("layer.sampling", json!({"sampling": "bilinear"}), "Alt+B"),
("layer.sampling", json!({"sampling": "bicubic"}), "Alt+Shift+B"),
("layer.sampling", json!({"sampling": "bilinear", "toggle": true}), "Alt+B"),
("layer.sampling", json!({"sampling": "bicubic", "toggle": true}), "Alt+Shift+B"),
("view.res.custom", json!(null), "Cmd+Alt+J"),
("file.setProxy", json!(null), "Cmd+Alt+P"),
("file.openRecent", json!(null), "Cmd+Alt+Shift+P"),