Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Dropped Pythonista < 3.2 support
Browse files Browse the repository at this point in the history
Removed keyboard shortcuts added to Pythonista 3.2.
  • Loading branch information
zrzka committed Jan 18, 2018
1 parent 4402f2a commit 8e52739
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* `pythonista_startup.py` sample - execute `main` only if `appex.is_running_extension()` is false
* `script/new_tab.py` trashed, it was there just for `Cmd T`, which is supported by Pythonista now
* Keyboard shortcuts added to Pythonista 3.2 removed - dropped support of Pythonista < 3.2

## 1.5.0 (2018-01-11)

Expand Down
32 changes: 0 additions & 32 deletions blackmamba/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,36 +58,6 @@ def _register_ios11_default_key_commands():
_register_key_command(*command)


@system.Pythonista(appex=False)
def _register_pre_311015_key_commands():
from blackmamba.uikit.keyboard import UIKeyModifier
import blackmamba.ide.tab as tab

if system.PYTHONISTA_BUNDLE_VERSION >= 311013:
return

commands = [
('W', UIKeyModifier.COMMAND,
tab.close_selected_tab,
'Close tab'),
('\t', UIKeyModifier.CONTROL,
tab.select_next_tab,
'Show next tab'),
('\t', UIKeyModifier.CONTROL | UIKeyModifier.SHIFT,
tab.select_previous_tab,
'Show previous tab'),
('T', UIKeyModifier.COMMAND,
'new_tab.py', 'New tab'),
(']', UIKeyModifier.COMMAND | UIKeyModifier.SHIFT,
tab.select_next_tab),
('[', UIKeyModifier.COMMAND | UIKeyModifier.SHIFT,
tab.select_previous_tab),
]

for command in commands:
_register_key_command(*command)


@system.Pythonista(appex=False)
def _register_default_key_commands():
from blackmamba.uikit.keyboard import UIKeyModifier, UIKeyInput
Expand Down Expand Up @@ -161,8 +131,6 @@ def select_tab():
for i in range(9):
_register_key_command(str(i + 1), UIKeyModifier.COMMAND, _make_select_tab(i))

_register_pre_311015_key_commands()

# No need to show Cmd-[Shift]-S to users
_log_level = get_level()
set_level(ERROR)
Expand Down

0 comments on commit 8e52739

Please sign in to comment.