mirror of
https://github.com/netbirdio/IronRDP.git
synced 2026-05-22 18:43:12 -07:00
fix(web): fix firefox selection issue (#708)
Co-authored-by: Benoît CORTIER <git.divisible626@passmail.com>
This commit is contained in:
co-authored by
Benoît CORTIER
parent
8ab98820bd
commit
3159eeceec
@@ -716,6 +716,9 @@
|
||||
}}
|
||||
oncontextmenu={(event) => event.preventDefault()}
|
||||
onwheel={mouseWheel}
|
||||
onselectstart={(event) => {
|
||||
event.preventDefault();
|
||||
}}
|
||||
id="renderer"
|
||||
tabindex="0"
|
||||
></canvas>
|
||||
@@ -738,6 +741,10 @@
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.screen-wrapper.hidden {
|
||||
pointer-events: none !important;
|
||||
position: absolute !important;
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
});
|
||||
return of(null);
|
||||
}),
|
||||
filter((result) => !!result),
|
||||
filter((result) => result !== null && result !== undefined), // Explicitly checking for null/undefined
|
||||
)
|
||||
.subscribe((start_info: NewSessionInfo | null) => {
|
||||
if (start_info != null && start_info.initial_desktop_size !== null) {
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
let uiService: UserInteraction;
|
||||
let cursorOverrideActive = false;
|
||||
let showDebugPanel = false;
|
||||
|
||||
userInteractionService.subscribe((uis) => {
|
||||
if (uis != null) {
|
||||
@@ -60,27 +61,44 @@
|
||||
</script>
|
||||
|
||||
<div style="display: flex; height: 100%; flex-direction: column; background-color: #2e2e2e;" class:hideall={$showLogin}>
|
||||
<div style="text-align: center; padding: 10px; background: black;">
|
||||
<button on:click={() => uiService.setScale(1)}>Fit</button>
|
||||
<button on:click={() => uiService.setScale(2)}>Full</button>
|
||||
<button on:click={() => uiService.setScale(3)}>Real</button>
|
||||
<button on:click={() => uiService.ctrlAltDel()}>Ctrl+Alt+Del</button>
|
||||
<button on:click={() => uiService.metaKey()}
|
||||
>Meta
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 512 512"
|
||||
><title> ionicons-v5_logos</title>
|
||||
<path d="M480,265H232V444l248,36V265Z" />
|
||||
<path d="M216,265H32V415l184,26.7V265Z" />
|
||||
<path d="M480,32,232,67.4V249H480V32Z" />
|
||||
<path d="M216,69.7,32,96V249H216V69.7Z" />
|
||||
</svg>
|
||||
</button>
|
||||
<button on:click={() => toggleCursorKind()}>Toggle cursor kind</button>
|
||||
<button on:click={() => uiService.shutdown()}>Terminate Session</button>
|
||||
<label style="color: white;">
|
||||
<input on:click={(e) => onUnicodeModeChange(e)} type="checkbox" />
|
||||
Unicode keyboard mode
|
||||
</label>
|
||||
<div>
|
||||
<div style="text-align: center; padding: 10px; background: black;">
|
||||
<button on:click={() => (showDebugPanel = !showDebugPanel)}>Toggle debug panel</button>
|
||||
<button on:click={() => uiService.setScale(1)}>Fit</button>
|
||||
<button on:click={() => uiService.setScale(2)}>Full</button>
|
||||
<button on:click={() => uiService.setScale(3)}>Real</button>
|
||||
<button on:click={() => uiService.ctrlAltDel()}>Ctrl+Alt+Del</button>
|
||||
<button on:click={() => uiService.metaKey()}
|
||||
>Meta
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 512 512"
|
||||
><title> ionicons-v5_logos</title>
|
||||
<path d="M480,265H232V444l248,36V265Z" />
|
||||
<path d="M216,265H32V415l184,26.7V265Z" />
|
||||
<path d="M480,32,232,67.4V249H480V32Z" />
|
||||
<path d="M216,69.7,32,96V249H216V69.7Z" />
|
||||
</svg>
|
||||
</button>
|
||||
<button on:click={() => toggleCursorKind()}>Toggle cursor kind</button>
|
||||
<button on:click={() => uiService.shutdown()}>Terminate Session</button>
|
||||
<label style="color: white;">
|
||||
<input on:click={(e) => onUnicodeModeChange(e)} type="checkbox" />
|
||||
Unicode keyboard mode
|
||||
</label>
|
||||
</div>
|
||||
|
||||
{#if showDebugPanel}
|
||||
<div id="debug-panel" style="background: black; color: white; padding: 10px;">
|
||||
debug-panel
|
||||
<input
|
||||
type="text"
|
||||
id="debug-panel-input"
|
||||
style="width: 100%; height: 100%; background: black; color: white;"
|
||||
placeholder="see if focus moves correctly"
|
||||
/>
|
||||
|
||||
<p>see if text selection works correctly</p>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<iron-remote-gui debugwasm="INFO" verbose="true" scale="fit" flexcenter="true" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user