diff options
author | fujiwarat <takao.fujiwara1@gmail.com> | 2013-05-13 10:52:20 +0900 |
---|---|---|
committer | fujiwarat <takao.fujiwara1@gmail.com> | 2013-05-13 10:52:20 +0900 |
commit | 4f5a40fe1a689ff5baab8716d987bd57075f1ac9 (patch) | |
tree | b26dd97f38a1aad7f932bafe456f94d8394bca32 /setup | |
parent | 32c26ab0fffb52aa5df8f529f4697b17ab9f29e2 (diff) | |
download | ibus-anthy-4f5a40fe1a689ff5baab8716d987bd57075f1ac9.tar.gz |
Added customizable Hiragana_Katakana key.
Diffstat (limited to 'setup')
-rw-r--r-- | setup/anthyprefs.py.in | 16 | ||||
-rw-r--r-- | setup/main.py | 3 |
2 files changed, 14 insertions, 5 deletions
diff --git a/setup/anthyprefs.py.in b/setup/anthyprefs.py.in index 3bd72cc..65c872d 100644 --- a/setup/anthyprefs.py.in +++ b/setup/anthyprefs.py.in @@ -277,14 +277,16 @@ _cmd_keys = [ 'on_off', 'circle_input_mode', 'circle_kana_mode', + 'circle_typing_method', + 'circle_dict_method', 'latin_mode', 'wide_latin_mode', 'hiragana_mode', 'katakana_mode', 'half_katakana_mode', # 'cancel_pseudo_ascii_mode_key', - 'circle_typing_method', - 'circle_dict_method', + + 'hiragana_for_latin_with_shift', 'insert_space', 'insert_alternate_space', @@ -1196,6 +1198,8 @@ _shortcut_default = { 'dict_admin': ['F11'], 'add_word': ['F12'], + + 'hiragana_for_latin_with_shift': ['Hiragana_Katakana'], } _config['shortcut/default'] = dict.fromkeys(_cmd_keys, []) @@ -1255,7 +1259,10 @@ _shortcut_atok = { 'convert_to_wide_latin': ['F9', 'Ctrl+P'], 'convert_to_latin': ['F10', 'Ctrl+at'], + 'dict_admin': ['F11'], 'add_word': ['Ctrl+F7'], + + 'hiragana_for_latin_with_shift': ['Ctrl+J'], } _config['shortcut/atok'] = dict.fromkeys(_cmd_keys, []) @@ -1305,6 +1312,11 @@ _shortcut_wnn = { 'convert_to_half': ['F8'], 'convert_to_wide_latin': ['F9'], 'convert_to_latin': ['F10'], + + 'dict_admin': ['F11'], + 'add_word': ['F12'], + + 'hiragana_for_latin_with_shift': ['Hiragana_Katakana'], } _config['shortcut/wnn'] = dict.fromkeys(_cmd_keys, []) diff --git a/setup/main.py b/setup/main.py index 20b29e7..056807b 100644 --- a/setup/main.py +++ b/setup/main.py @@ -1621,9 +1621,6 @@ class AnthySetup(object): ls = self.__builder.get_object('shortcut').get_model() ls.clear() - for a in widget.get_model(): - print a[0] - sec = self._get_shortcut_sec() for k in self.prefs.keys(sec): ls.append([k, l_to_s(self.prefs.get_value(sec, k))]) |