Get rid of the send_text_map code

Just transform send_text directives in the config file to map
directives.
This commit is contained in:
Kovid Goyal
2017-11-19 08:56:34 +05:30
parent 1d45a831ef
commit 4dc6918b13
5 changed files with 8 additions and 59 deletions

View File

@@ -225,13 +225,6 @@ def get_shortcut(keymap, mods, key, scancode):
return keymap.get((mods & 0b1111, key))
def get_sent_data(send_text_map, key, scancode, mods, window, action):
if action in (defines.GLFW_PRESS, defines.GLFW_REPEAT):
m = keyboard_mode_name(window.screen)
keymap = send_text_map[m]
return keymap.get((mods & 0b1111, key))
def generate_key_table():
# To run this, use: python3 . -c "from kitty.keys import *; generate_key_table()"
import os