X-Git-Url: http://git.sourceforge.jp/view?p=neighbornote%2FNeighborNote.git;a=blobdiff_plain;f=src%2Fcx%2Ffbn%2Fnevernote%2Fgui%2FContentView.java;h=3655adf9d1816c86b1606ac1ef2921ba35eb438b;hp=6e0f33726b21a128de83e296f7a7d2a3de3e09d1;hb=a5d5f41749237f79fa252169d3887fa1807e9c78;hpb=ea94dfeb4e955c79616af64448be1a8fd09c23d3 diff --git a/src/cx/fbn/nevernote/gui/ContentView.java b/src/cx/fbn/nevernote/gui/ContentView.java index 6e0f337..3655adf 100644 --- a/src/cx/fbn/nevernote/gui/ContentView.java +++ b/src/cx/fbn/nevernote/gui/ContentView.java @@ -330,6 +330,21 @@ public class ContentView extends QWebView { e.accept(); return; } + + // This is done to capture the operation of cutting by shortcut keys + if (e.matches(StandardKey.Cut)) { + parent.cutClicked(); + e.accept(); + return; + } + + // This is done to capture the operation of copying by shortcut keys + if (e.matches(StandardKey.Copy)) { + parent.copyClicked(); + e.accept(); + return; + } + super.keyPressEvent(e); }