feature request: Auto-Zoom on Text / Typing
Idea: Add an auto-zoom whenever I type something, to be more visible, and this option can be optional
Like a zoomed-in box where you can see the text
I suggest implementing an optional auto-zoom feature that activates whenever a user begins typing. This enhancement would greatly improve visibility and ease of use, allowing users to focus on their input without straining their eyes. By enabling this feature, users can see their text more clearly, particularly in interfaces with limited screen real estate.
Additionally, providing an option to toggle this feature on or off would ensure that those who prefer the traditional view can continue using the application as they wish. This small adjustment could significantly enhance the overall user experience and accessibility.
Hey i'd like to take this up @webadderall
Assigned you!
hey sorry it took me so long to get to this! I went over the codebase and have devised a plan to implement this, let me know if it sounds good. Here is what I'm thinking, we should capture keyboard activity (key press/release) like we capture cursor telemetry. This can be done in the following way as outlined in this GeeksForGeeks article:
const electron = require("electron");
// Importing BrowserWindow from Main Process
// using Electron remote
const BrowserWindow = electron.remote.BrowserWindow;
const win = BrowserWindow.getFocusedWindow();
// let win = BrowserWindow.getAllWindows()[0];
win.webContents.on("before-input-event", (event, input) => {
console.log(input);
});
Upon recording we parse the keyboard telemetry and add a zoom whenever there is keyDown specifically characters and not meta keys like ctrl and end the zoom when a constant number of seconds has passed since the last keyUp. This constant can also be a factor of the user's typing speed which can be measured as time between keystrokes.
I am not sure how we expect the user to opt in or out of this though.
hey sorry it took me so long to get to this! I went over the codebase and have devised a plan to implement this, let me know if it sounds good. Here is what I'm thinking, we should capture keyboard activity (key press/release) like we capture cursor telemetry. This can be done in the following way as outlined in this GeeksForGeeks article:
const electron = require("electron"); // Importing BrowserWindow from Main Process // using Electron remote const BrowserWindow = electron.remote.BrowserWindow; const win = BrowserWindow.getFocusedWindow(); // let win = BrowserWindow.getAllWindows()[0]; win.webContents.on("before-input-event", (event, input) => { console.log(input); });Upon recording we parse the keyboard telemetry and add a zoom whenever there is keyDown specifically characters and not meta keys like
ctrland end the zoom when a constant number of seconds has passed since the last keyUp. This constant can also be a factor of the user's typing speed which can be measured as time between keystrokes.I am not sure how we expect the user to opt in or out of this though.
Use the extension page and upload it