Apparently some letters can't be typed in Tk's input widgets such as Tk.Text, Tk.Entry.
When I try to type some Turkish letters, they can't be detected. But when I first type in Notepad then copy paste into the widgets or by using the insert attribute, it somehow works. I tried various font families but same result. What causes this and is there any way to fix this?
root = Tk()
entry = Entry(root, width=60, font=('Comic Sans MS', 15))
entry.pack(pady=50, padx=50)
entry.insert("1", "şşşşşŞŞŞŞŞııııığğğğğĞĞĞĞĞİİİİİ")
textbox = Text(root, font=('Comic Sans MS', 10))
textbox.pack(pady=50, padx=50)
textbox.insert("1.0", "şşşşş\nŞŞŞŞŞ\nııııı\nğğğğğ\nĞĞĞĞĞ\nİİİİİ")
root.mainloop()

I solved it by writing a real-time letter replacing function.