Skip to content

Commit d1e6853

Browse files
committed
engine: Fix page_up/page_down class methods (#27)
1 parent 934e301 commit d1e6853

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

engine/python2/engine.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# ibus-anthy - The Anthy engine for IBus
55
#
66
# Copyright (c) 2007-2008 Peng Huang <[email protected]>
7-
# Copyright (c) 2010-2022 Takao Fujiwara <[email protected]>
7+
# Copyright (c) 2010-2023 Takao Fujiwara <[email protected]>
88
# Copyright (c) 2007-2018 Red Hat, Inc.
99
#
1010
# This program is free software; you can redistribute it and/or modify
@@ -1536,14 +1536,14 @@ def __on_key_page_up(self):
15361536
if self.__preedit_ja_string.is_empty():
15371537
return False
15381538
if self.__lookup_table_visible == True:
1539-
self.do_page_up()
1539+
self.__page_up(self)
15401540
return True
15411541

15421542
def __on_key_page_down(self):
15431543
if self.__preedit_ja_string.is_empty():
15441544
return False
15451545
if self.__lookup_table_visible == True:
1546-
self.do_page_down()
1546+
self.__page_down(self)
15471547
return True
15481548

15491549
'''def __on_key_left(self):

engine/python3/engine.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# ibus-anthy - The Anthy engine for IBus
55
#
66
# Copyright (c) 2007-2008 Peng Huang <[email protected]>
7-
# Copyright (c) 2010-2022 Takao Fujiwara <[email protected]>
7+
# Copyright (c) 2010-2023 Takao Fujiwara <[email protected]>
88
# Copyright (c) 2007-2018 Red Hat, Inc.
99
#
1010
# This program is free software; you can redistribute it and/or modify
@@ -1531,14 +1531,14 @@ def __on_key_page_up(self):
15311531
if self.__preedit_ja_string.is_empty():
15321532
return False
15331533
if self.__lookup_table_visible == True:
1534-
self.do_page_up()
1534+
self.__page_up(self)
15351535
return True
15361536

15371537
def __on_key_page_down(self):
15381538
if self.__preedit_ja_string.is_empty():
15391539
return False
15401540
if self.__lookup_table_visible == True:
1541-
self.do_page_down()
1541+
self.__page_down(self)
15421542
return True
15431543

15441544
'''def __on_key_left(self):

0 commit comments

Comments
 (0)