Skip to content

Commit

Permalink
Fix Ctrl+C not working
Browse files Browse the repository at this point in the history
  • Loading branch information
hugolabe committed May 7, 2024
1 parent d9f0cdc commit f38b01c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later


from gi.repository import Gtk, Adw, WebKit
from gi.repository import Gdk, Gtk, Adw, WebKit

from wike.data import settings
from wike.view import WikiView
Expand Down Expand Up @@ -79,7 +79,7 @@ def load_now(self):
# Manage webkit key pressed and redirect to window

def _event_controller_key_pressed_cb(self, event_controller, keyval, keycode, state, allow_keys):
if keyval in allow_keys:
if keyval in allow_keys or state is Gdk.ModifierType.CONTROL_MASK:
return False
else:
event_controller.forward(self._window)
Expand Down

0 comments on commit f38b01c

Please sign in to comment.