Skip to content

Commit

Permalink
Revert "add uppercase shortcut for navigation"
Browse files Browse the repository at this point in the history
This reverts commit 7523836.
  • Loading branch information
outscale-mal committed Sep 14, 2023
1 parent 8e9e952 commit a7c65e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 49 deletions.
37 changes: 0 additions & 37 deletions osc_tui/mainForm.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,49 +382,12 @@ def quit_key(self, key_val):
def key_reload(self, _):
self.reload()

def switch_to_volumes(self, _):
global MODE
MODE = "Volumes"
self.reload()

def switch_to_instances(self, _):
global MODE
MODE = "Vms"
self.reload()

def switch_to_images(self, _):
global MODE
MODE = "Images"
self.reload()

def switch_to_security_grid(self, _):
global MODE
MODE = "Security"
self.reload()

def switch_to_nets(self, _):
global MODE
MODE = "Nets"
self.reload()

def switch_to_keypairs(self, _):
global MODE
MODE = "Keypairs"
self.reload()

def set_up_handlers(self):
super().set_up_handlers()
self.add_handlers({"q": self.quit_key})
self.add_handlers({"^Q": quit})
self.add_handlers({"h": popup.showHelp})
self.add_handlers({"/": popup.slashSearch})
self.add_handlers({"C": self.create_new})
self.add_handlers({"V": self.switch_to_volumes})
self.add_handlers({"I": self.switch_to_instances})
self.add_handlers({"M": self.switch_to_images})
self.add_handlers({"S": self.switch_to_security_grid})
self.add_handlers({"T": self.switch_to_nets})
self.add_handlers({"K": self.switch_to_keypairs})
self.add_handlers({
"r" : self.key_reload,
curses.KEY_F5 : self.key_reload
Expand Down
18 changes: 6 additions & 12 deletions osc_tui/popup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,18 +1062,12 @@ def showHelp(arg):
oscscreen.Pager,
)
ft.values = [
"Return to profile : q",
"Exit : Ctrl+Q",
"Refresh : F5 or r",
"Search in Fields : /",
"search in Menu : l",
"Help : h",
"Switch to Vms : I",
"Switch to Volumes : V",
"Switch to Images : M",
"Switch to Security : S",
"Switch to Nets : T",
"Switch to Keypairs : K\n",
"Return to profile : q",
"Exit : Ctrl+Q",
"Refresh : F5 or r",
"Search in Fields : /",
"search in Menu : l",
"Help : h\n",
]

def ok():
Expand Down

0 comments on commit a7c65e7

Please sign in to comment.