No Code Attached Yet
avatar FDIN-NL
FDIN-NL
30 Mar 2023

Steps to reproduce the issue

Making an override in i.e. the template presents the codemirror as editor. Here the F10 is mentioned to switch to full screen.

Expected result

Advise the F11 as this works in a.o. Chrome and Firefox

Actual result

F10 is advised and does not work.

System information (as much as possible)

Joomla 4 current version

Additional comments

I changed my local version:

Solution:
plugins/editors/codemirror/layouts/editors/codemirror/element.php
line 32 $fskeys[] = $params->get('fullScreen', 'F10');
changed to
line 32 $fskeys[] = $params->get('fullScreen', 'F11');

avatar FDIN-NL FDIN-NL - open - 30 Mar 2023
avatar joomla-cms-bot joomla-cms-bot - change - 30 Mar 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 Mar 2023
avatar brianteeman
brianteeman - comment - 30 Mar 2023

Sorry you are mistaken about what this does.

The f11 you are referring to is a browser hotkey which makes the browser go full screen

Here the reference to f10 is a codemirror hotkey (codemirror needs to have keyboard focus) which makes codemirror take up the entire screen.

f10

avatar Quy
Quy - comment - 30 Mar 2023

Closing as not an issue for reason stated.

avatar Quy Quy - change - 30 Mar 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-03-30 19:56:05
Closed_By Quy
avatar Quy Quy - close - 30 Mar 2023
avatar FDIN-NL
FDIN-NL - comment - 31 Mar 2023

Thank you Brian for explaining. I tried to find any document about CODEMIRROR and FULL SCREEN annd this came up:
https://codemirror.net/5/demo/fullscreen.html
Apparently they agree with me that F11 is the way to go.
I have retried the toggle F11 and as you explained with the focus on the codemirror sub-window it will work, and with the focus on the rest of the browser-page it also works!
With my suggested change they both work as expected.
Please reconsider.

@Quy I would appreciate to be able to close MY issue after I am satisfied with the response.

avatar brianteeman
brianteeman - comment - 31 Mar 2023

You could of course use the EXISTING settings in the Joomla settings for codemirror that let you set the function key to whatever you want - including adding a modifier

image

avatar FDIN-NL
FDIN-NL - comment - 31 Mar 2023

Thank you again. There is still so much to discover in Joomla!

This is the perfect solution. I would not mind if this became the default...

😃


Add a Comment

Login with GitHub to post a comment