|
|
@ -24,7 +24,7 @@ export class AvaloniaDOM { |
|
|
|
|
|
|
|
|
// Native controls host
|
|
|
// Native controls host
|
|
|
const nativeHost = document.createElement("div"); |
|
|
const nativeHost = document.createElement("div"); |
|
|
canvas.id = `nativeHost${randomIdPart}`; |
|
|
nativeHost.id = `nativeHost${randomIdPart}`; |
|
|
nativeHost.classList.add("avalonia-native-host"); |
|
|
nativeHost.classList.add("avalonia-native-host"); |
|
|
nativeHost.style.left = "0px"; |
|
|
nativeHost.style.left = "0px"; |
|
|
nativeHost.style.top = "0px"; |
|
|
nativeHost.style.top = "0px"; |
|
|
@ -34,7 +34,7 @@ export class AvaloniaDOM { |
|
|
|
|
|
|
|
|
// IME
|
|
|
// IME
|
|
|
const inputElement = document.createElement("input"); |
|
|
const inputElement = document.createElement("input"); |
|
|
canvas.id = `input${randomIdPart}`; |
|
|
inputElement.id = `inputElement${randomIdPart}`; |
|
|
inputElement.classList.add("avalonia-input-element"); |
|
|
inputElement.classList.add("avalonia-input-element"); |
|
|
inputElement.autocapitalize = "none"; |
|
|
inputElement.autocapitalize = "none"; |
|
|
inputElement.type = "text"; |
|
|
inputElement.type = "text"; |
|
|
|