    001package org.vishia.commander;
    002
    003import java.io.File;
    004
    005import org.vishia.fileRemote.FileRemote;
    006import org.vishia.gral.base.GralWidget;
    007import org.vishia.gral.ifc.GralUserAction;
    008import org.vishia.util.KeyCode;
    009
    010
    011
    012
    013
    014/**This class handles all actions of common keys. Most of the keys are common.
    015 *
    016 * Hartmut Schorrig
    017 */
    018public class FcmdKeyActions
    019{
    020  final Fcmd main;
    021
    022  int keyExecuteInJcmd =  KeyCode.ctrl + KeyCode.enter;
    023
    024  int keyExecuteAsJavaClass =  KeyCode.ctrl + KeyCode.alt + KeyCode.shift + KeyCode.enter;
    025  int keyExecuteInShellOpened = KeyCode.ctrl + KeyCode.alt + KeyCode.shift + KeyCode.enter;
    026
    027  int keyExecuteInShell = KeyCode.ctrl + KeyCode.alt + KeyCode.enter;
    028
    029  int keyExecuteStartProcess = KeyCode.ctrl + KeyCode.shift + KeyCode.enter;
    030
    031  int keyPanelSelection = KeyCode.alt + KeyCode.dn;
    032
    033
    034  int keyCreateFavorite = KeyCode.ctrl + 'b';   //like 'Lesezeichen einfuegen'
    035  //---------------------------------------------------------------------------------
    036  //Working
    037  /*
    038  int keyFileProps = KeyCode.F2;
    039
    040  int keyView = KeyCode.F3;
    041
    042  int keyEdit = KeyCode.F4;
    043
    044  int keyCopy = KeyCode.F5;
    045
    046  int keyMkDirFile = KeyCode.F7;
    047
    048  int keyDelete1 = KeyCode.F8;
    049
    050  int keyDelete2 = KeyCode.del;
    051
    052  int keyWindFullOut = KeyCode.ctrl + 'o';
    053
    054
    055
    056  int keyOpenProperties = KeyCode.alt + KeyCode.enter;
    057
    058  //---------------------------------------------------------------------------------
    059  //Navigation
    060  int keySelectPanelLeft = KeyCode.alt + KeyCode.F1;
    061  int keySelectPanelMid = KeyCode.alt + KeyCode.F2;
    062  int keySelectPanelRight = KeyCode.alt + KeyCode.F3;
    063
    064  */
    065  //int keyPanelFile = KeyCode.alt + KeyCode.ctrl + KeyCode.up;
    066
    067  //int keyPanelLeft = KeyCode.alt + KeyCode.ctrl + KeyCode.left;
    068
    069  //int keyPanelRight = KeyCode.alt + KeyCode.ctrl + KeyCode.right;
    070
    071  //int keyMainPanelLeft = KeyCode.alt + KeyCode.shift + KeyCode.left;
    072
    073  //int keyMainPanelRight = KeyCode.alt + KeyCode.shift + KeyCode.right;
    074
    075
    076  /**Show files in the current selected dir. Entry in the directory. */
    077  int keyEntryDir;
    078  /**Show files in the parent dir, like cd .. */
    079  int keyLeaveDir;
    080
    081
    082  //---------------------------------------------------------------------------------
    083  //View
    084
    085
    086  FcmdKeyActions(Fcmd parent)
    087  {
    088    main = parent;
    089  }
    090
    091
    092
    093
    094}