Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
specter
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AxioDL
specter
Commits
ecea5833
Commit
ecea5833
authored
Apr 02, 2019
by
Jack Andersen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add True and False tests for bitwise enums
parent
6d00c400
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
lib/FileBrowser.cpp
lib/FileBrowser.cpp
+1
-1
lib/RootView.cpp
lib/RootView.cpp
+2
-2
lib/TextField.cpp
lib/TextField.cpp
+2
-2
zeus
zeus
+1
-1
No files found.
lib/FileBrowser.cpp
View file @
ecea5833
...
...
@@ -405,7 +405,7 @@ void FileBrowser::touchMove(const boo::STouchCoord& coord, uintptr_t tid) {}
void
FileBrowser
::
charKeyDown
(
unsigned
long
charcode
,
boo
::
EModifierKey
mod
,
bool
isRepeat
)
{
if
(
skipBuildInAnimation
()
||
closed
())
return
;
if
(
(
mod
&
boo
::
EModifierKey
::
CtrlCommand
)
!=
boo
::
EModifierKey
::
None
&&
!
isRepeat
)
{
if
(
True
(
mod
&
boo
::
EModifierKey
::
CtrlCommand
)
&&
!
isRepeat
)
{
if
(
charcode
==
'h'
||
charcode
==
'H'
)
setShowingHidden
(
!
showingHidden
());
else
if
(
charcode
==
'r'
||
charcode
==
'R'
)
...
...
lib/RootView.cpp
View file @
ecea5833
...
...
@@ -446,7 +446,7 @@ void RootView::touchMove(const boo::STouchCoord& coord, uintptr_t tid) {
void
RootView
::
charKeyDown
(
unsigned
long
charCode
,
boo
::
EModifierKey
mods
,
bool
isRepeat
)
{
for
(
View
*
v
:
m_views
)
v
->
charKeyDown
(
charCode
,
mods
,
isRepeat
);
if
(
m_activeTextView
&&
(
mods
&
(
boo
::
EModifierKey
::
Ctrl
|
boo
::
EModifierKey
::
Command
))
!=
boo
::
EModifierKey
::
None
)
{
if
(
m_activeTextView
&&
True
(
mods
&
(
boo
::
EModifierKey
::
Ctrl
|
boo
::
EModifierKey
::
Command
))
)
{
if
(
charCode
==
'c'
||
charCode
==
'C'
)
m_activeTextView
->
clipboardCopy
();
else
if
(
charCode
==
'x'
||
charCode
==
'X'
)
...
...
@@ -462,7 +462,7 @@ void RootView::charKeyUp(unsigned long charCode, boo::EModifierKey mods) {
}
void
RootView
::
specialKeyDown
(
boo
::
ESpecialKey
key
,
boo
::
EModifierKey
mods
,
bool
isRepeat
)
{
if
(
key
==
boo
::
ESpecialKey
::
Enter
&&
(
mods
&
boo
::
EModifierKey
::
Alt
)
!=
boo
::
EModifierKey
::
None
)
{
if
(
key
==
boo
::
ESpecialKey
::
Enter
&&
True
(
mods
&
boo
::
EModifierKey
::
Alt
)
)
{
m_window
->
setFullscreen
(
!
m_window
->
isFullscreen
());
return
;
}
...
...
lib/TextField.cpp
View file @
ecea5833
...
...
@@ -320,7 +320,7 @@ void TextField::specialKeyDown(boo::ESpecialKey key, boo::EModifierKey mods, boo
return
;
if
(
key
==
boo
::
ESpecialKey
::
Left
)
{
if
(
(
mods
&
boo
::
EModifierKey
::
Shift
)
!=
boo
::
EModifierKey
::
None
)
{
if
(
True
(
mods
&
boo
::
EModifierKey
::
Shift
)
)
{
if
(
m_cursorPos
)
{
size_t
origPos
=
m_cursorPos
;
if
(
m_selectionCount
)
{
...
...
@@ -338,7 +338,7 @@ void TextField::specialKeyDown(boo::ESpecialKey key, boo::EModifierKey mods, boo
setCursorPos
(
m_cursorPos
==
0
?
0
:
(
m_cursorPos
-
1
));
}
}
else
if
(
key
==
boo
::
ESpecialKey
::
Right
)
{
if
(
(
mods
&
boo
::
EModifierKey
::
Shift
)
!=
boo
::
EModifierKey
::
None
)
{
if
(
True
(
mods
&
boo
::
EModifierKey
::
Shift
)
)
{
std
::
string_view
textStr
(
m_textStr
);
size_t
len
=
UTF8Iterator
(
textStr
.
cbegin
()).
countTo
(
textStr
.
cend
());
if
(
m_cursorPos
<
len
)
{
...
...
zeus
@
61787553
Subproject commit
2edc75f7935573e6022be739b4058f56ae8665d2
Subproject commit
617875531acd375e77f142fdb04fd219162c1237
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment