Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl+U opens index.html in a text editor #767

Open
colltoaction opened this issue Aug 31, 2024 · 9 comments
Open

Ctrl+U opens index.html in a text editor #767

colltoaction opened this issue Aug 31, 2024 · 9 comments

Comments

@colltoaction
Copy link

Hi! I'm seeing an index.html editor window every time I hit Ctrl+U. This doesn't happen with the Upload menu button or other shortcuts such as Ctrl+B.

I think the issue comes from unfinished work around here, or maybe with the shortcut settings.

//-----------------------------------------------------------
//-- Open the new window
//-- More information:
//-- https://nwjs.readthedocs.io/en/latest/References/Window/
//-- #windowopenurl-options-callback
//-----------------------------------------------------------
//nw.Window.open(url, window);
console.log("(DEBUG) Calling: nw.Window.open(url)");
console.log(`Url: ${url}`);
nw.Window.open(url);

I'm on Icestudio 0.12 on Linux.

Thanks for taking a look, maybe I can fix it with some guidance.

@cavearr
Copy link
Member

cavearr commented Aug 31, 2024

Hi Martin! could you attach an screenshot with the editor window opened after Ctrl+U?

I can't reproduce your problem and i need to view how is happening to fix it or help you to fix it.

Thanks!

@colltoaction
Copy link
Author

Sure!

screenshot

@cavearr
Copy link
Member

cavearr commented Aug 31, 2024

WTF!!! 😮 i think you have some shortcut in your system linked to open an external editor. I'll try to research it and tell you.

what's your linux distribution?

could you try if in Chrome browser and in firefox if you press ctrl+u in any page the editor appears?

Thanks!

@colltoaction
Copy link
Author

😂 I'm using the AppImage in Ubuntu 23.04 with Firefox and I have not installed Chrome. The firefox shortcut for view source is Ctrl+U as well.

@cavearr
Copy link
Member

cavearr commented Aug 31, 2024

Yes i think the Operating system takes de control over ctrl+U for open editor in each application that could be editable XD

I look for a solution to this, thanks for detect it! it's very weird, i'm telling you soon

@colltoaction
Copy link
Author

Thanks! Tengo unas cositas más de UX si querés que te pase pero mirá que soy muy detallista jaja.

@cavearr
Copy link
Member

cavearr commented Aug 31, 2024

Todo el feedback es bueno tu lanza ideas se evalúan y se mira a ver. Yo ando preparando un gran set de cambios a nivel de ui y motor de cara al otoño, puede ser buen momento para nuevas ideas por si pudieran encajar.

@TimRudy
Copy link
Contributor

TimRudy commented Sep 1, 2024 via email

@cavearr
Copy link
Member

cavearr commented Sep 1, 2024

It appears that this shortcut is used by the operating system to open the code editor configured on the system by default (if you have installed and configured-linked the editor on the system). I haven't found any solution yet, I think it might be impossible to replace this (I have to try some ideas tomorrow but I think it might be a limitation).

If the limitation is confirmed, I think it might be a good idea to change this shortcut (e.g. Ctrl+Shit+U or WindowsKey+U).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants