Bug 464645 - Alternate shortcut for Focus/Defocus Terminal Panel only Focus Terminal Panel but Default shortcut of Focus/Defocus Terminal Panel , Focus and Defocus Terminal Panel both.
Summary: Alternate shortcut for Focus/Defocus Terminal Panel only Focus Terminal Panel...
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 22.12.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-22 12:42 UTC by Subham Poddar
Modified: 2023-01-22 14:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Subham Poddar 2023-01-22 12:42:55 UTC
SUMMARY
While terminal is opened when editing a file using F4,  Ctrl+Shift+F4 is default shortcut for Focus/Defocus Terminal Panel . On using Ctrl+Shift+F4 , Defocus Terminal Panel happens where active cursor moves from terminal area to text editing area , on using same shortcut Focus Terminal Panel happens where active cursor moves from text editing area to Terminal. But if you set alternate shortcut key for Focus/Defocus Terminal Panel and on pressing the alternate shortcut key only Focus Terminal Panel happens but again on pressing alternate shortcut key Defocus Terminal Panel does not happen.


STEPS TO REPRODUCE
1. Open a text file to edit and press F4 to bring terminal panel.
2. Set alternate shortcut for Defocus/Focus Terminal panel.
3. Use alternate shortcut set while cursor is active at text editing area , where you will notice focus moving from cursor from text editing area to terminal area but on again using same alternate shortcut focus does not move back to text editing area.
4. Now use default shortcut , which is Ctrl+Shift+F4 . Focus moves back and forth from text editing area and terminal area .

OBSERVED RESULT
Alternate shortcut set for Focus/Defocus Terminal Panel does have same behavior as default shortcut. Basically alternate shortcut only Focus Terminal Panel but does Defocus Terminal panel

EXPECTED RESULT
Both alternate shortcut and default shortcut should have same behavior. Alternate shortcut should Focus Terminal Panel and Defocus Terminal panel.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 5.15.89-1-lts (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i3-7020U CPU @ 2.30GHz
Memory: 3.8 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Manufacturer: HP
Product Name: HP Laptop 15-bs0xx
Comment 1 Puspam Adak 2023-01-22 13:37:02 UTC
Terminals do intercept some shortcuts such as Ctrl+C, Ctrl+V, etc. So you have to assign some shortcuts which doesn't mess up with those. Setting shortcut with multiple modifier keys like Ctrl+Shift+<anything> or Ctrl+Alt+<anything> is a good idea.

I have tried with some alternate shortcuts which do not mess up with the default terminal shortcuts, and it works as expected.
Comment 2 Subham Poddar 2023-01-22 14:39:46 UTC
(In reply to Puspam Adak from comment #1)
> Terminals do intercept some shortcuts such as Ctrl+C, Ctrl+V, etc. So you
> have to assign some shortcuts which doesn't mess up with those. Setting
> shortcut with multiple modifier keys like Ctrl+Shift+<anything> or
> Ctrl+Alt+<anything> is a good idea.
> 
> I have tried with some alternate shortcuts which do not mess up with the
> default terminal shortcuts, and it works as expected.

Thanks , I tried with Ctrl+Shift+Q as alternate shortcut and it is working as expected .
Comment 3 Subham Poddar 2023-01-22 14:40:50 UTC
(In reply to Puspam Adak from comment #1)
> Terminals do intercept some shortcuts such as Ctrl+C, Ctrl+V, etc. So you
> have to assign some shortcuts which doesn't mess up with those. Setting
> shortcut with multiple modifier keys like Ctrl+Shift+<anything> or
> Ctrl+Alt+<anything> is a good idea.
> 
> I have tried with some alternate shortcuts which do not mess up with the
> default terminal shortcuts, and it works as expected.