Bug 353809 - [text-tool] Artistic text tool can't type letter attributed to keyboard shortcuts
Summary: [text-tool] Artistic text tool can't type letter attributed to keyboard short...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Layers/Vector (show other bugs)
Version: 2.9.8
Platform: Compiled Sources Linux
: NOR critical
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-11 23:49 UTC by David REVOY
Modified: 2015-11-10 06:05 UTC (History)
4 users (show)

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


Attachments
screenshot with text typed with letters that are also shortcuts (163.53 KB, image/png)
2015-10-29 17:04 UTC, Halla Rempt
Details
config files (8.21 KB, application/zip)
2015-10-29 17:38 UTC, Luca Weiss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David REVOY 2015-10-11 23:49:04 UTC
Hi, 
I updated to 2.9.8 after a little week outside home studio, and just discovered the text-tool in Artistic mode is broken: if you type a letter with it already attributed to a shortcut in Krita, it execute the keyboard shortcut in Krita but not type the letter.

To reproduce:
============
1. Select the Text-tool in the toolbar
2. By default it should be in 'Artistic' mode
3. Trace a square on the canvas to set the size of the first letter
4. Press 'M' ( it will mirror canvas, and not type M )
5. Press 'E'  ( it will put the 'Eraser' mode on , and not type E )
6. Press 'B' ( it will select the Brush tool, and not type B )

Notes : The multiline variant of the Text-tool is not affected.
Comment 1 Kyle UX (chez Tinderbox) 2015-10-20 15:57:38 UTC
David beat me to this report, but I've encountered the same issue.
Comment 2 Luca Weiss 2015-10-28 19:25:37 UTC
Same problem, can't do the thing I wanted to do right now...
Comment 3 Danilo JR 2015-10-28 22:42:03 UTC
Confirmed!   I have custom shortcuts and I can't type these letter with text tool. 

krita 2.9.8.0  x64 
windows 7 x64 , sp1 
i7, 16gb, gtx 750
Comment 4 Halla Rempt 2015-10-29 17:04:03 UTC
Created attachment 95211 [details]
screenshot with text typed with letters that are also shortcuts

Hm... I'm afraid I still haven't found a way to reproduce. I tried both with the default shortcuts and a new assigned shortcut. So I'm not sure what's up. Could someone who experiences this bug try with a clean configuration? On Linux, backup and remove .kde/share/apps/krita and .kde/share/config/kritarc. If that fixes the issue, I'd like a copy of the backed up configuration settings.
Comment 5 Luca Weiss 2015-10-29 17:37:29 UTC
When I installed 2.9.7 it worked again... And no removing apps/krita and config/kritarc did not help, nevertheless I am uploading a zip of all the files. 
I am using Ubuntu 15.10 with Unity.
Comment 6 Luca Weiss 2015-10-29 17:38:29 UTC
Created attachment 95212 [details]
config files

maybe they are helpful / different
Comment 7 Halla Rempt 2015-10-29 19:12:16 UTC
Thanks, I will check with those tomorrow on the train to work.
Comment 8 Halla Rempt 2015-10-29 19:33:31 UTC
Oh, wait... I was bisecting so I was on a version of Krita dating back to march. I'll check again after rebuilding 2.9.
Comment 9 Danilo JR 2015-10-30 15:28:44 UTC
@Boudwijn   I have tested with a clean configuration but the issue persist.
Comment 10 Halla Rempt 2015-10-30 16:27:32 UTC
Thanks for checking. I'm going to try and find the commit that caused the regression.
Comment 11 Halla Rempt 2015-10-30 19:40:48 UTC
that was

commit 022f939c9d6c20f1717e1c81d10a5519f9de5f1d
Author: David Faure <faure@kde.org>
Date:   Sat Aug 30 11:15:00 2014 +0200

    Let Ctrl+Home/Ctrl+End go to top and bottom of text shape in stage.
    
    Much more expected than exiting edit-mode and going to the first or last page.
    
    This required to pass QEvent::ShortcutOverride event to tools, via viewmodes.
    The name shortcutOverrideEvent() is made up, QWidget doesn't have a specific
    virtual method for this and requires reimplementing event(QEvent*) instead.
    But I find that shortcutOverrideEvent is much nicer to have :)
    
    This new virtual method could be used to refine the earlier commits
    which implemented some blind rule ("keys without modifiers or with shift"),
    while the right way to do it is to accept the specific shortcuts handled
    by the current tool (which can also include shortcuts with CTRL or even ALT,
    and maybe does NOT include some shortcuts without modifiers, like PageUp or Esc...).
    CCMAIL: sven.langkamp@gmail.com


Fix coming up tomorrow.
Comment 12 Halla Rempt 2015-10-31 07:42:01 UTC
Git commit 4086b11cf75a9b49a9f7eda8ca784856df9308ec by Boudewijn Rempt.
Committed on 31/10/2015 at 07:40.
Pushed by rempt into branch 'calligra/2.9'.

We have two text tools, and in 022f939c9d6c20f1717e1c81d10a5519f9de5f1d
only the multiline text tool was ported to the new shortcut override
system.

CCMAIL:faure@kde.org

M  +18   -0    plugins/artistictextshape/ArtisticTextTool.cpp
M  +2    -0    plugins/artistictextshape/ArtisticTextTool.h

http://commits.kde.org/calligra/4086b11cf75a9b49a9f7eda8ca784856df9308ec
Comment 13 Halla Rempt 2015-10-31 07:43:01 UTC
Git commit a32f95f4ec4ad419eeab51578e15b5c450f1101a by Boudewijn Rempt.
Committed on 31/10/2015 at 07:42.
Pushed by rempt into branch 'master'.

We have two text tools, and in 022f939c9d6c20f1717e1c81d10a5519f9de5f1d
only the multiline text tool was ported to the new shortcut override
system.

CCMAIL:faure@kde.org

M  +18   -0    plugins/artistictextshape/ArtisticTextTool.cpp
M  +2    -0    plugins/artistictextshape/ArtisticTextTool.h

http://commits.kde.org/krita/a32f95f4ec4ad419eeab51578e15b5c450f1101a
Comment 14 David REVOY 2015-11-01 11:03:59 UTC
Thank you for the bug-fix ! I just tested the new commits and it's perfect.  :-)
Comment 15 Friedrich W. H. Kossebau 2015-11-10 06:05:14 UTC
Git commit ed9c9859947705572a3327920ddedb742be49447 by Friedrich W. H. Kossebau, on behalf of Boudewijn Rempt.
Committed on 10/11/2015 at 06:04.
Pushed by kossebau into branch 'master'.

We have two text tools, and in 022f939c9d6c20f1717e1c81d10a5519f9de5f1d
only the multiline text tool was ported to the new shortcut override
system.

CCMAIL:faure@kde.org

M  +18   -0    plugins/artistictextshape/ArtisticTextTool.cpp
M  +2    -0    plugins/artistictextshape/ArtisticTextTool.h

http://commits.kde.org/calligra/ed9c9859947705572a3327920ddedb742be49447