No Code Attached Yet
avatar PhocaCz
PhocaCz
29 Sep 2022

Steps to reproduce the issue

Edit article and hit J and A to save the article. If you are inside the editor, J and A is written to editor instead to run save event.

Expected result

Save article regardless of where the cursor is located

Actual result

It is not possible to save article when the cursor is over the editor, which is mostly if you're writing an article

System information (as much as possible)

Joomla 4.2

Additional comments

avatar PhocaCz PhocaCz - open - 29 Sep 2022
avatar joomla-cms-bot joomla-cms-bot - change - 29 Sep 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Sep 2022
avatar brianteeman
brianteeman - comment - 29 Sep 2022

I would argue that this is the expected behaviour. If the shortcut keys work when inside the editor how would you write your own name.

The same is treue with almost every shortcut system. For example here in github if I press ? outside of the editor then I get a popup of the available shortcuts. But obviously inside the editor I get the ?

avatar PhocaCz
PhocaCz - comment - 29 Sep 2022

Maybe the problem is in the selected shortcuts and pressing them one after another. Usually, if possible, the Control key is used in conjunction with another key. But I'm not an expert on shortcuts or accessibility, so I can't judge the choice of keyboard shortcuts.

Personally, I would suggest turning off the plugin by default and if someone turns it on, he/she will understand that Joomla shortcuts replace browser shortcuts and I would choose established shortcuts like:

CTRL+S - save,
CTRL+N - new,

etc.

Shortcuts are currently unusable in some situations, e.g. if you're writing an article and want to save it, etc. If I have to leave the editor area with the mouse, I don't actually have to use a shortcut and click the mouse directly to save the article. (It is my personal opinion and may be based on ignorance of some specifications, so please do not take it as a criticism of the existing solution).

avatar pinochico
pinochico - comment - 29 Sep 2022

I would argue that this is the expected behaviour.

Ha,
Obviously we all expect something different.
And your expectations seem to support these adjustments and even defend them?

Do you think copying nonsense from github will make you world class?

Good thing programmers with "expected behavior" don't work at apple, otherwise I'd have gone crazy pressing "A + something expected" for 30 years.

Keyboard shortcuts should work in combination with function key(s).
And the best solution is to map the keyboard shortcuts in the system, not to specify it based on how someone sleeps or advocates that it is "expected behavior".

Vanity of vanities

avatar PhocaCz PhocaCz - close - 29 Sep 2022
avatar PhocaCz
PhocaCz - comment - 29 Sep 2022

To avoid any escalation, I'm closing this thread.

Let's not label this behavior as a bug.

If anyone has similar problems as me, then I would recommend installing this plugin from Regular Labs ( https://extensions.joomla.org/extension/keyboard-shortcuts/ ). Here the shortcuts are assigned to the Control button and you can save the article even if you have the cursor in the editor, etc.

Jan

avatar PhocaCz PhocaCz - change - 29 Sep 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-09-29 21:53:39
Closed_By PhocaCz

Add a Comment

Login with GitHub to post a comment