initial working version

This commit is contained in:
riqo 2021-06-16 08:42:47 -05:00
commit d963f7d8a8
23 changed files with 89 additions and 100 deletions

View file

@ -1,10 +1,10 @@
import { Ref, ref, watch, onMounted, onUnmounted } from "vue";
import { postMessage } from "@/ipc/session";
import { postMessage } from "@/render/ipc";
import { newMessage, animateTextInput } from "./helpers";
export default function useTextInputController(elementX: Ref) {
let textInput: HTMLInputElement | null;
const { side, show, hide, switchSide } = animateTextInput();
@ -37,10 +37,10 @@ export default function useTextInputController(elementX: Ref) {
// Send it to the backend for processing.
const message = newMessage({
text: textInput.value
text: false
});
postMessage(message);
// postMessage(message);
clearInput()
}