https://bugs.kde.org/show_bug.cgi?id=519996
Bug ID: 519996
Summary: When naming a layer, if a space is added before the
name, pressing the space bar will jump to that layer.
Classification: Applications
Product: krita
Version First 5.3.1
Reported In:
Platform: Microsoft Windows
OS: Microsoft Windows
Status: REPORTED
Severity: normal
Priority: NOR
Component: Layers/Vector
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
DESCRIPTION
When added a space before the layer name (note that it should be placed before
the name, not in the middle or at the end), pressing the space will jump to
that layer. Additionally, by adding numbers before the layer name, such as 1,
2, 3, pressing the corresponding number will also jump to the corresponding
layer.
STEPS TO REPRODUCE
1. Double-click the layer name
2. Add a space before the name.OR,backspace all text and name the layer as a
space.
3. When pressing the space bar, it will jump from other layers to this layer.
OBSERVED RESULT
The result is that when you normally press and drag the canvas with the space
bar, it will jump to that layer.
Incidentally,debugging the following content in the script debugging tool can
fix this bug (until you close or restart Krita):
from krita import Krita
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QTreeView
# Get Krita instance
app = Krita.instance()
# Find the layer docker
kis_layer_box = next((d for d in app.dockers() if d.objectName() ==
'KisLayerBox'), None)
if kis_layer_box:
# Find the layer list tree view
layers_tree = kis_layer_box.findChild(QTreeView, 'listLayers')
if layers_tree:
# Disable the first character jump function
layers_tree.setFocusPolicy(Qt.NoFocus)
print("Successfully disabled layer first character jump function")
else:
print("Layer list tree view not found")
else:
print("Layer docker not found")
--
You are receiving this mail because:
You are watching all bug changes.