Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
218
Issues
218
List
Boards
Labels
Milestones
Merge Requests
25
Merge Requests
25
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim
Commits
6ec5d3e6
Commit
6ec5d3e6
authored
Feb 19, 2010
by
Yann Leboulanger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Ctrl+C handling. Fixes
#1503
parent
be9aa8ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/chat_control.py
src/chat_control.py
+5
-4
No files found.
src/chat_control.py
View file @
6ec5d3e6
...
...
@@ -556,10 +556,11 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
def
_conv_textview_key_press_event
(
self
,
widget
,
event
):
# translate any layout to latin_layout
keymap
=
gtk
.
gdk
.
keymap_get_default
()
keycode
,
group
,
level
=
keymap
.
get_entries_for_keyval
(
event
.
keyval
)[
0
]
keycodec
,
group
,
level
=
keymap
.
get_entries_for_keyval
(
gtk
.
keysyms
.
c
)[
0
]
if
(
event
.
state
&
gtk
.
gdk
.
CONTROL_MASK
and
event
.
keyval
in
(
keycodec
,
gtk
.
keysyms
.
Insert
))
or
(
event
.
state
&
gtk
.
gdk
.
SHIFT_MASK
and
\
keycode
=
keymap
.
get_entries_for_keyval
(
event
.
keyval
)[
0
][
0
]
keycode_c
=
keymap
.
get_entries_for_keyval
(
gtk
.
keysyms
.
c
)[
0
][
0
]
keycode_ins
=
keymap
.
get_entries_for_keyval
(
gtk
.
keysyms
.
Insert
)[
0
][
0
]
if
(
event
.
state
&
gtk
.
gdk
.
CONTROL_MASK
and
keycode
in
(
keycode_c
,
keycode_ins
))
or
(
event
.
state
&
gtk
.
gdk
.
SHIFT_MASK
and
\
event
.
keyval
in
(
gtk
.
keysyms
.
Page_Down
,
gtk
.
keysyms
.
Page_Up
)):
return
False
self
.
parent_win
.
notebook
.
emit
(
'key_press_event'
,
event
)
...
...
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