Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kdevelop
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Morten Volden
kdevelop
Commits
e2b2fd2c
Commit
e2b2fd2c
authored
Feb 19, 2019
by
Milian Wolff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't eat the backspace event when no alt modifier is set
parent
d96d759a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
plugins/quickopen/quickopenwidget.cpp
plugins/quickopen/quickopenwidget.cpp
+9
-6
No files found.
plugins/quickopen/quickopenwidget.cpp
View file @
e2b2fd2c
...
...
@@ -445,25 +445,28 @@ bool QuickOpenWidget::eventFilter(QObject* watched, QEvent* event)
return
true
;
// eat event
}
break
;
case
Qt
::
Key_Backspace
:
if
(
keyEvent
->
modifiers
()
==
Qt
::
AltModifier
)
{
if
(
auto
interface
=
getInterface
())
{
interface
->
back
();
return
true
;
// eat event
}
}
break
;
case
Qt
::
Key_Down
:
case
Qt
::
Key_Up
:
case
Qt
::
Key_Backspace
:
{
if
(
keyEvent
->
modifiers
()
==
Qt
::
AltModifier
)
{
if
(
auto
interface
=
getInterface
())
{
if
(
keyEvent
->
key
()
==
Qt
::
Key_Down
)
{
interface
->
down
();
}
else
if
(
keyEvent
->
key
()
==
Qt
::
Key_Up
)
{
interface
->
up
();
}
else
{
interface
->
back
();
interface
->
up
();
}
return
true
;
// eat event
}
break
;
}
Q_FALLTHROUGH
();
}
case
Qt
::
Key_PageUp
:
case
Qt
::
Key_PageDown
:
if
(
watched
==
ui
.
list
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment