Preserve QWord caret while typing
This commit is contained in:
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user