Skip to content

Commit

Permalink
feat: Fixed bug where Ctrl+S had no effect; saving now requires using…
Browse files Browse the repository at this point in the history
… File | Save #1
  • Loading branch information
dineug committed Oct 9, 2024
1 parent 8ab9c0c commit ed29e80
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 7 additions & 0 deletions packages/vscode-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.1.5] - 2024-10-09

### Fixed

- Updated code block styling
- Fixed bug where `Ctrl+S` had no effect; saving now requires using `File | Save`

## [0.1.4] - 2024-10-08

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "textflow-editor-vscode",
"version": "0.1.4",
"version": "0.1.5",
"private": true,
"description": "WYSIWYG Editor VSCode Extension",
"icon": "./assets/textflow.png",
Expand Down
8 changes: 3 additions & 5 deletions packages/vscode-webview/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,9 @@ const App: React.FC = () => {

useEffect(() => {
const handleKeydown = (event: KeyboardEvent) => {
if (
event.code === 'KeyZ' && hasAppleDevice()
? event.metaKey
: event.ctrlKey
) {
const $mod = hasAppleDevice() ? event.metaKey : event.ctrlKey;

if ($mod && event.code === 'KeyZ') {
event.stopPropagation();
}
};
Expand Down

0 comments on commit ed29e80

Please sign in to comment.