Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]
### Fixed
- Fixed an issue where keyboard shortcuts conflicted with input elements [#364](https://github.com/CCDirectLink/crosscode-map-editor/issues/364)

## [2.8.0] 2026-11-26
### Added
- Added support for SELECT_RANDOM events
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/app/components/phaser/phaser.component.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<div #content id="content"></div>
<div #content id="content" (mousedown)="blurActiveElement()"></div>
<app-captions></app-captions>
8 changes: 7 additions & 1 deletion webapp/src/app/components/phaser/phaser.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,13 @@ export class PhaserComponent implements AfterViewInit {
);
Globals.game.scale.setZoom(1 / window.devicePixelRatio);
}


blurActiveElement() {
if (document.activeElement instanceof HTMLElement) {
document.activeElement.blur();
}
}

private getScale() {
const rect = this.content.nativeElement.getBoundingClientRect();
return {
Expand Down
Loading