e.accept();\r
return;\r
}\r
+ \r
+ // This is done to capture the operation of cutting by shortcut keys\r
+ if (e.matches(StandardKey.Cut)) {\r
+ parent.cutClicked();\r
+ e.accept();\r
+ return;\r
+ }\r
+ \r
+ // This is done to capture the operation of copying by shortcut keys\r
+ if (e.matches(StandardKey.Copy)) {\r
+ parent.copyClicked();\r
+ e.accept();\r
+ return;\r
+ }\r
+ \r
super.keyPressEvent(e);\r
}\r
\r