Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
ba242bba
Commit
ba242bba
authored
Jul 27, 2010
by
Luci Stanescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed sending DTMF digits when a conference is active
parent
f4ed5d83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sessions.py
blink/sessions.py
+4
-4
No files found.
blink/sessions.py
View file @
ba242bba
...
@@ -1249,11 +1249,11 @@ class SessionListView(QListView):
...
@@ -1249,11 +1249,11 @@ class SessionListView(QListView):
def
keyPressEvent
(
self
,
event
):
def
keyPressEvent
(
self
,
event
):
digit
=
chr
(
event
.
key
())
if
event
.
key
()
<
256
else
None
digit
=
chr
(
event
.
key
())
if
event
.
key
()
<
256
else
None
selection_model
=
self
.
selectionModel
()
if
digit
is
not
None
and
digit
in
'0123456789ABCD#*'
:
selected_indexes
=
selection_model
.
selectedIndexes
()
for
session
in
(
s
for
s
in
self
.
model
()
.
sessions
if
s
.
active
):
if
digit
is
not
None
and
digit
in
'0123456789ABCD#*'
and
selected_indexes
:
session
.
send_dtmf
(
digit
)
self
.
model
()
.
data
(
selected_indexes
[
0
])
.
send_dtmf
(
digit
)
elif
event
.
key
()
in
(
Qt
.
Key_Up
,
Qt
.
Key_Down
):
elif
event
.
key
()
in
(
Qt
.
Key_Up
,
Qt
.
Key_Down
):
selection_model
=
self
.
selectionModel
()
current_index
=
selection_model
.
currentIndex
()
current_index
=
selection_model
.
currentIndex
()
if
current_index
.
isValid
():
if
current_index
.
isValid
():
step
=
1
if
event
.
key
()
==
Qt
.
Key_Down
else
-
1
step
=
1
if
event
.
key
()
==
Qt
.
Key_Down
else
-
1
...
...
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