Preserve QWord caret while typing

This commit is contained in:
Курнат Андрей
2026-06-04 21:00:40 +03:00
parent c16df37c95
commit 626576e156
6 changed files with 142 additions and 4 deletions
+4 -2
View File
@@ -12,6 +12,7 @@ import type { AppId } from "../types";
interface AppShellProps {
activeApp: AppId;
windowTitle?: string;
status: {
savedLabel: string;
updatedAt?: string;
@@ -37,8 +38,9 @@ function keepActiveEditorFocus(event: MouseEvent<HTMLButtonElement>) {
event.preventDefault();
}
export function AppShell({ activeApp, status, children }: AppShellProps) {
export function AppShell({ activeApp, windowTitle, status, children }: AppShellProps) {
const statusClassName = ["statusbar", status.className].filter(Boolean).join(" ");
const displayWindowTitle = windowTitle?.trim() || appTitles[activeApp];
return (
<div className="qoffice-shell">
@@ -58,7 +60,7 @@ export function AppShell({ activeApp, status, children }: AppShellProps) {
<ChevronDown size={14} />
</button>
</div>
<strong className="window-title">{appTitles[activeApp]}</strong>
<strong className="window-title">{displayWindowTitle}</strong>
<div className="titlebar-actions">
<label className="command-search">
<Search size={16} />