eclipse - OleClientSite addKeyListener seems not working in swt in java -
i opening word document in swt in java using oleclientsite . want save document when user press ctrl+s . have added keylistener oleclientsite . code follows : public class swtmenuexample { static oleclientsite clientsite; static oleframe frame; static file file; static shell shell; static keylistener keylistener; public static void main(final string[] args) { final display display = new display(); shell = new shell(display); shell.setsize(800, 600); shell.settext("word example"); shell.setlayout(new filllayout()); try { frame = new oleframe(shell, swt.none); // esto abre un documento existente // clientsite = new oleclientsite(frame, swt.none, new // file("doc1.doc")); // esto abre un documento en blanco // clientsite = new oleclientsite(frame, swt.none, "word.document"); addfilemenu(frame);