Skip to content

Commit

Permalink
Fix block and indentation keyboard handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
sora committed Jun 29, 2022
1 parent 3881311 commit 444c3c2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.0.0-alpha.16

- Fixed: Block movement and indentation were broken by the new keyboard event handler

# v1.0.0-alpha.15

- Added: Support for xmodmap custom keyboard maps
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@osmoscraft/osmosnote",
"version": "1.0.0-alpha.15",
"version": "1.0.0-alpha.16",
"description": "",
"main": "main.js",
"types": "index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class InputService {
}
break;

case "BracketRight":
case "]":
if (event.ctrlKey) {
event.preventDefault();
if (event.shiftKey) {
Expand All @@ -241,7 +241,7 @@ export class InputService {
}
break;

case "BracketLeft":
case "[":
if (event.ctrlKey) {
event.preventDefault();
if (event.shiftKey) {
Expand Down Expand Up @@ -291,13 +291,13 @@ export class InputService {
break;

// Indent/Outdent
case "Period":
case ".":
if (event.altKey) {
event.preventDefault();
this.editService.shiftIndent(host, 1);
}
break;
case "Comma":
case ",":
if (event.altKey) {
event.preventDefault();
this.editService.shiftIndent(host, -1);
Expand Down

0 comments on commit 444c3c2

Please sign in to comment.