-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from dionisiydk/dev
Focus based navigation is added
- Loading branch information
Showing
23 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
Calypso-Tools-CoreBrowser.package/ClyBrowser.class/instance/isNavigationPanelFocused.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
testing | ||
isNavigationPanelFocused | ||
|
||
^navigationViews anySatisfy: [ :each | each hasKeyboardFocus ] |
7 changes: 7 additions & 0 deletions
7
Calypso-Tools-CoreBrowser.package/ClyBrowser.class/instance/switchFocusToNextPane.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
navigation | ||
switchFocusToNextPane | ||
|
||
| focused next | | ||
focused := navigationViews detect: [ :each | each hasKeyboardFocus ] ifNone: [ ^self ]. | ||
next := navigationViews after: focused ifAbsent: [ ^self focusActiveTab ]. | ||
next takeKeyboardFocus |
7 changes: 7 additions & 0 deletions
7
Calypso-Tools-CoreBrowser.package/ClyBrowser.class/instance/switchFocusToPreviousPane.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
navigation | ||
switchFocusToPreviousPane | ||
|
||
| focused next | | ||
focused := navigationViews detect: [ :each | each hasKeyboardFocus ] ifNone: [ ^self ]. | ||
next := navigationViews before: focused ifAbsent: [ ^self ]. | ||
next takeKeyboardFocus |
3 changes: 3 additions & 0 deletions
3
Calypso-Tools-CoreBrowser.package/ClyNavigationView.class/instance/hasKeyboardFocus.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
testing | ||
hasKeyboardFocus | ||
^super hasKeyboardFocus or: [ table hasKeyboardFocus ] |
3 changes: 3 additions & 0 deletions
3
Calypso-Tools-CoreBrowser.package/ClyNavigationView.class/instance/takeKeyboardFocus.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
controlling | ||
takeKeyboardFocus | ||
table takeKeyboardFocus |
Empty file.
3 changes: 3 additions & 0 deletions
3
...ols-CoreBrowser.package/ClySwitchFocusToNextBrowserPaneCommand.class/instance/browser..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
browser: anObject | ||
browser := anObject |
3 changes: 3 additions & 0 deletions
3
...ools-CoreBrowser.package/ClySwitchFocusToNextBrowserPaneCommand.class/instance/browser.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
browser | ||
^ browser |
3 changes: 3 additions & 0 deletions
3
....package/ClySwitchFocusToNextBrowserPaneCommand.class/instance/canBeExecutedInContext..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
testing | ||
canBeExecutedInContext: aBrowserContext | ||
^aBrowserContext browser isNavigationPanelFocused |
3 changes: 3 additions & 0 deletions
3
...ools-CoreBrowser.package/ClySwitchFocusToNextBrowserPaneCommand.class/instance/execute.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
execution | ||
execute | ||
browser switchFocusToNextPane |
4 changes: 4 additions & 0 deletions
4
...ckage/ClySwitchFocusToNextBrowserPaneCommand.class/instance/readParametersFromContext..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
execution | ||
readParametersFromContext: aToolContext | ||
super readParametersFromContext: aToolContext. | ||
browser := aToolContext browser |
13 changes: 13 additions & 0 deletions
13
...so-Tools-CoreBrowser.package/ClySwitchFocusToNextBrowserPaneCommand.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "CmdCommand", | ||
"category" : "Calypso-Tools-CoreBrowser-Commands-BrowserControlling", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"browser" | ||
], | ||
"name" : "ClySwitchFocusToNextBrowserPaneCommand", | ||
"type" : "normal" | ||
} |
Empty file.
3 changes: 3 additions & 0 deletions
3
...CoreBrowser.package/ClySwitchFocusToPreviousBrowserPaneCommand.class/instance/browser..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
browser: anObject | ||
browser := anObject |
3 changes: 3 additions & 0 deletions
3
...-CoreBrowser.package/ClySwitchFocusToPreviousBrowserPaneCommand.class/instance/browser.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
browser | ||
^ browser |
3 changes: 3 additions & 0 deletions
3
...kage/ClySwitchFocusToPreviousBrowserPaneCommand.class/instance/canBeExecutedInContext..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
testing | ||
canBeExecutedInContext: aBrowserContext | ||
^aBrowserContext browser isNavigationPanelFocused |
3 changes: 3 additions & 0 deletions
3
...-CoreBrowser.package/ClySwitchFocusToPreviousBrowserPaneCommand.class/instance/execute.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
execution | ||
execute | ||
browser switchFocusToPreviousPane |
4 changes: 4 additions & 0 deletions
4
...e/ClySwitchFocusToPreviousBrowserPaneCommand.class/instance/readParametersFromContext..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
execution | ||
readParametersFromContext: aToolContext | ||
super readParametersFromContext: aToolContext. | ||
browser := aToolContext browser |
13 changes: 13 additions & 0 deletions
13
...ools-CoreBrowser.package/ClySwitchFocusToPreviousBrowserPaneCommand.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "CmdCommand", | ||
"category" : "Calypso-Tools-CoreBrowser-Commands-BrowserControlling", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"browser" | ||
], | ||
"name" : "ClySwitchFocusToPreviousBrowserPaneCommand", | ||
"type" : "normal" | ||
} |
5 changes: 5 additions & 0 deletions
5
.../ClySwitchFocusToNextBrowserPaneCommand.extension/class/systemBrowserShortcutActivator.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*Calypso-Tools-SystemBrowser | ||
systemBrowserShortcutActivator | ||
<commandActivator> | ||
|
||
^CmdShortcutCommandActivator by: Character arrowRight asShortcut for: ClySystemBrowserContext |
3 changes: 3 additions & 0 deletions
3
...ls-SystemBrowser.package/ClySwitchFocusToNextBrowserPaneCommand.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"name" : "ClySwitchFocusToNextBrowserPaneCommand" | ||
} |
5 changes: 5 additions & 0 deletions
5
...SwitchFocusToPreviousBrowserPaneCommand.extension/class/systemBrowserShortcutActivator.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*Calypso-Tools-SystemBrowser | ||
systemBrowserShortcutActivator | ||
<commandActivator> | ||
|
||
^CmdShortcutCommandActivator by: Character arrowLeft asShortcut for: ClySystemBrowserContext |
3 changes: 3 additions & 0 deletions
3
...ystemBrowser.package/ClySwitchFocusToPreviousBrowserPaneCommand.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"name" : "ClySwitchFocusToPreviousBrowserPaneCommand" | ||
} |