Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
7f5822ea
Commit
7f5822ea
authored
20 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
Ctrl/Shift+PageUp/Down and Ctrl+Tab now work when the focus is on the message_textview
parent
5fcae5b0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/gtkgui/tabbed_chat_window.py
+16
-2
16 additions, 2 deletions
plugins/gtkgui/tabbed_chat_window.py
with
16 additions
and
2 deletions
plugins/gtkgui/tabbed_chat_window.py
+
16
−
2
View file @
7f5822ea
...
...
@@ -147,7 +147,22 @@ class Tabbed_chat_window(Chat):
"""
When a key is pressed :
if enter is pressed without the shit key, message (if not empty) is sent
and printed in the conversation
"""
if
event
.
keyval
==
gtk
.
keysyms
.
Return
:
jid
=
self
.
get_active_jid
()
conversation_textview
=
self
.
xmls
[
jid
].
get_widget
(
'
conversation_textview
'
)
if
event
.
keyval
==
gtk
.
keysyms
.
Tab
and
\
(
event
.
state
&
gtk
.
gdk
.
CONTROL_MASK
):
# CTRL + TAB
self
.
notebook
.
emit
(
'
key_press_event
'
,
event
)
elif
event
.
keyval
==
gtk
.
keysyms
.
Page_Down
:
# PAGE DOWN
if
event
.
state
&
gtk
.
gdk
.
CONTROL_MASK
:
# CTRL + PAGE DOWN
self
.
notebook
.
emit
(
'
key_press_event
'
,
event
)
if
event
.
state
&
gtk
.
gdk
.
SHIFT_MASK
:
# SHIFT + PAGE DOWN
conversation_textview
.
emit
(
'
key_press_event
'
,
event
)
elif
event
.
keyval
==
gtk
.
keysyms
.
Page_Up
:
# PAGE UP
if
event
.
state
&
gtk
.
gdk
.
CONTROL_MASK
:
# CTRL + PAGE UP
self
.
notebook
.
emit
(
'
key_press_event
'
,
event
)
if
event
.
state
&
gtk
.
gdk
.
SHIFT_MASK
:
# SHIFT + PAGE UP
conversation_textview
.
emit
(
'
key_press_event
'
,
event
)
elif
event
.
keyval
==
gtk
.
keysyms
.
Return
:
if
(
event
.
state
&
gtk
.
gdk
.
SHIFT_MASK
):
return
False
if
self
.
plugin
.
connected
[
self
.
account
]
<
2
:
#we are not connected
...
...
@@ -159,7 +174,6 @@ class Tabbed_chat_window(Chat):
message
=
message_buffer
.
get_text
(
start_iter
,
end_iter
,
0
)
if
message
!=
''
:
keyID
=
''
jid
=
self
.
get_active_jid
()
if
self
.
xmls
[
jid
].
get_widget
(
'
gpg_togglebutton
'
).
get_active
():
keyID
=
self
.
users
[
jid
].
keyID
self
.
plugin
.
send
(
'
MSG
'
,
self
.
account
,
(
jid
,
message
,
keyID
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment